mirror of
https://github.com/julia-actions/julia-runtest.git
synced 2026-02-12 19:16:55 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa1e6fac94 | ||
|
|
8d20cd78f8 | ||
|
|
c80d3075f7 |
@@ -11,7 +11,12 @@ An example workflow that uses this action might look like this:
|
||||
```yaml
|
||||
name: Run tests
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
@@ -66,10 +66,11 @@ runs:
|
||||
julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'include(joinpath(ENV["GITHUB_ACTION_PATH"], "test_harness.jl"))' )
|
||||
|
||||
# Add the prefix in front of the command if there is one
|
||||
prefix="${{ inputs.prefix }}"
|
||||
[[ -n $prefix ]] && julia_cmd=( "$prefix" "${julia_cmd[@]}" )
|
||||
prefix=( ${{ inputs.prefix }} )
|
||||
[[ -n ${prefix[*]} ]] && julia_cmd=( "${prefix[@]}" "${julia_cmd[@]}" )
|
||||
|
||||
# Run the Julia command
|
||||
echo "::debug::Executing Julia: ${julia_cmd[*]}"
|
||||
"${julia_cmd[@]}"
|
||||
shell: bash
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user