11name : CI
22on :
3- pull_request :
4- branches :
5- - master
63 push :
74 branches :
85 - master
9- tags : ' *'
6+ tags : ['*']
7+ pull_request :
8+ workflow_dispatch :
9+ concurrency :
10+ # Skip intermediate builds: always.
11+ # Cancel intermediate builds: only if it is a pull request build.
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
1014jobs :
1115 test :
12- name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
1317 runs-on : ${{ matrix.os }}
18+ permissions :
19+ # needed to allow julia-actions/cache to proactively delete old caches that it has created
20+ actions : write
21+ contents : read
1422 strategy :
1523 fail-fast : false
1624 matrix :
1725 version :
18- - ' 1' # automatically expands to the latest stable 1.x release of Julia
26+ - ' 1' # latest stable release
1927 - ' nightly'
2028 os :
2129 - ubuntu-latest
@@ -28,25 +36,17 @@ jobs:
2836 - os : macOS-latest
2937 arch : x86
3038 steps :
31- - uses : actions/checkout@v2
32- - uses : julia-actions/setup-julia@v1
39+ - uses : actions/checkout@v4
40+ - uses : julia-actions/setup-julia@v2
3341 with :
3442 version : ${{ matrix.version }}
3543 arch : ${{ matrix.arch }}
36- - uses : actions/cache@v1
37- env :
38- cache-name : cache-artifacts
39- with :
40- path : ~/.julia/artifacts
41- key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
42- restore-keys : |
43- ${{ runner.os }}-test-${{ env.cache-name }}-
44- ${{ runner.os }}-test-
45- ${{ runner.os }}-
46- - run : julia --color=yes .ci/test_and_change_uuid.jl
44+ - uses : julia-actions/cache@v2
4745 - uses : julia-actions/julia-buildpkg@v1
4846 - uses : julia-actions/julia-runtest@v1
4947 - uses : julia-actions/julia-processcoverage@v1
50- - uses : codecov/codecov-action@v1
48+ - uses : codecov/codecov-action@v5
5149 with :
52- file : lcov.info
50+ files : lcov.info
51+ token : ${{ secrets.CODECOV_TOKEN }}
52+ fail_ci_if_error : false
0 commit comments