|
4 | 4 | branches: |
5 | 5 | - main |
6 | 6 | pull_request: |
| 7 | + |
| 8 | +# needed to allow julia-actions/cache to delete old caches that it has created |
| 9 | +permissions: |
| 10 | + actions: write |
| 11 | + contents: read |
| 12 | + |
| 13 | +# Cancel existing tests on the same PR if a new commit is added to a pull request |
| 14 | +concurrency: |
| 15 | + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} |
| 16 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 17 | + |
7 | 18 | jobs: |
8 | 19 | test: |
9 | | - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
10 | 20 | runs-on: ${{ matrix.os }} |
11 | 21 | strategy: |
12 | 22 | fail-fast: false |
13 | 23 | matrix: |
14 | | - version: |
15 | | - - '1' |
16 | 24 | os: |
17 | 25 | - ubuntu-latest |
18 | 26 | - macOS-latest |
19 | 27 | - windows-latest |
20 | | - arch: |
21 | | - - x64 |
| 28 | + |
22 | 29 | steps: |
23 | | - - uses: actions/checkout@v2 |
24 | | - - uses: julia-actions/setup-julia@v1 |
| 30 | + - uses: actions/checkout@v4 |
| 31 | + - uses: julia-actions/setup-julia@v2 |
25 | 32 | with: |
26 | | - version: ${{ matrix.version }} |
27 | | - arch: ${{ matrix.arch }} |
28 | | - - uses: actions/cache@v1 |
29 | | - env: |
30 | | - cache-name: cache-artifacts |
31 | | - with: |
32 | | - path: ~/.julia/artifacts |
33 | | - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
34 | | - restore-keys: | |
35 | | - ${{ runner.os }}-test-${{ env.cache-name }}- |
36 | | - ${{ runner.os }}-test- |
37 | | - ${{ runner.os }}- |
38 | | - - uses: julia-actions/julia-buildpkg@latest |
39 | | - - uses: julia-actions/julia-runtest@latest |
| 33 | + version: "1" |
| 34 | + - uses: julia-actions/cache@v2 |
| 35 | + - uses: julia-actions/julia-buildpkg@v1 |
| 36 | + - uses: julia-actions/julia-runtest@v1 |
40 | 37 | - uses: julia-actions/julia-processcoverage@v1 |
41 | | - - uses: codecov/codecov-action@v1 |
| 38 | + - uses: codecov/codecov-action@v5 |
42 | 39 | with: |
43 | | - file: lcov.info |
| 40 | + files: lcov.info |
| 41 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 42 | + fail_ci_if_error: true |
0 commit comments