@@ -21,6 +21,10 @@ concurrency:
21
21
# Cancel intermediate builds: only if it is a pull request build.
22
22
group : ${{ github.workflow }}-${{ github.ref }}
23
23
cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
24
+ # needed to allow julia-actions/cache to delete old caches that it has created
25
+ permissions :
26
+ actions : write
27
+ contents : read
24
28
jobs :
25
29
test :
26
30
# Run on push's or non-draft PRs
@@ -39,24 +43,16 @@ jobs:
39
43
arch :
40
44
- x64
41
45
steps :
42
- - uses : actions/checkout@v2
43
- - uses : julia-actions/setup-julia@v1
46
+ - uses : actions/checkout@v4
47
+ - uses : julia-actions/setup-julia@v2
44
48
with :
45
49
version : ${{ matrix.version }}
46
50
arch : ${{ matrix.arch }}
47
- - uses : actions/cache@v1
48
- env :
49
- cache-name : cache-artifacts
50
- with :
51
- path : ~/.julia/artifacts
52
- key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
53
- restore-keys : |
54
- ${{ runner.os }}-test-${{ env.cache-name }}-
55
- ${{ runner.os }}-test-
56
- ${{ runner.os }}-
51
+ - uses : julia-actions/cache@v1
57
52
- uses : julia-actions/julia-buildpkg@v1
58
53
- uses : julia-actions/julia-runtest@v1
59
54
- uses : julia-actions/julia-processcoverage@v1
60
- - uses : codecov/codecov-action@v1
55
+ - uses : codecov/codecov-action@v4
61
56
with :
62
57
file : lcov.info
58
+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments