Add workflow to check PkgEval #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PkgEval | |
on: | |
push: | |
branches: | |
- pkgeval | |
- 'release-*' | |
jobs: | |
test: | |
name: Check PkgEval | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1' | |
- uses: actions/checkout@v4 | |
with: | |
repository: 'JuliaCI/PkgEval.jl' | |
- name: Instantiate PkgEval | |
run: julia --project=. -e 'import Pkg; Pkg.instantiate()' | |
- name: Run PkgEval | |
shell: julia --project=. {0} | |
run: | | |
BRANCH = ENV["GITHUB_REF_NAME"] | |
using PkgEval | |
config = Configuration(; julia="nightly"); | |
package = Package(; name="DocumenterCitations", rev=BRANCH) | |
println("##################################################") | |
@show config | |
@show package | |
println("##################################################") | |
result = PkgEval.evaluate_test(config, package; echo=true) | |
println("##################################################") | |
@show result.version | |
@show result.duration | |
@show result.status | |
@show result.reason | |
exit(result.status == :ok ? 0 : 1) |