mirror of
https://github.com/julia-actions/julia-runtest.git
synced 2026-02-18 14:06: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
|
```yaml
|
||||||
name: Run tests
|
name: Run tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
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"))' )
|
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
|
# Add the prefix in front of the command if there is one
|
||||||
prefix="${{ inputs.prefix }}"
|
prefix=( ${{ inputs.prefix }} )
|
||||||
[[ -n $prefix ]] && julia_cmd=( "$prefix" "${julia_cmd[@]}" )
|
[[ -n ${prefix[*]} ]] && julia_cmd=( "${prefix[@]}" "${julia_cmd[@]}" )
|
||||||
|
|
||||||
# Run the Julia command
|
# Run the Julia command
|
||||||
|
echo "::debug::Executing Julia: ${julia_cmd[*]}"
|
||||||
"${julia_cmd[@]}"
|
"${julia_cmd[@]}"
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user