File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,12 +17,31 @@ concurrency:
1717 cancel-in-progress : false
1818
1919jobs :
20+ run_tests :
21+ runs-on : ubuntu-latest
22+
23+ steps :
24+ - uses : actions/checkout@v6
25+
26+ - uses : julia-actions/setup-julia@v3
27+ with :
28+ version : " 1"
29+
30+ - uses : julia-actions/cache@v3
31+
32+ - name : Instantiate package environment
33+ run : julia --project=. -e 'using Pkg; Pkg.instantiate()'
34+
35+ - name : Run tests
36+ run : julia --project=. -e 'using Pkg; Pkg.test()'
37+
2038 build :
2139 runs-on : ubuntu-latest
40+
2241 steps :
2342 - uses : actions/checkout@v6
2443
25- - uses : julia-actions/setup-julia@latest
44+ - uses : julia-actions/setup-julia@v3
2645 with :
2746 version : " 1"
2847
@@ -35,23 +54,30 @@ jobs:
3554 run : julia --project=docs docs/make.jl
3655
3756 - if : github.event_name == 'push' && github.ref == 'refs/heads/main'
38- uses : actions/configure-pages@v5
57+ uses : actions/configure-pages@v6
3958
4059 - if : github.event_name == 'push' && github.ref == 'refs/heads/main'
41- uses : actions/upload-pages-artifact@v4
60+ uses : actions/upload-pages-artifact@v5
4261 with :
4362 path : docs/build
4463
4564 deploy :
4665 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
47- needs : build
66+
67+ needs :
68+ - run_tests
69+ - build
70+
4871 permissions :
4972 pages : write
5073 id-token : write
74+
5175 environment :
5276 name : github-pages
5377 url : ${{ steps.deployment.outputs.page_url }}
78+
5479 runs-on : ubuntu-latest
80+
5581 steps :
5682 - id : deployment
5783 uses : actions/deploy-pages@v5
You can’t perform that action at this time.
0 commit comments