|
1 | 1 | name: CI |
2 | 2 | on: |
3 | | - - push |
4 | | - - pull_request |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - main |
| 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/') }} |
5 | 14 | jobs: |
6 | 15 | test: |
7 | | - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
| 16 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} |
8 | 17 | runs-on: ${{ matrix.os }} |
| 18 | + timeout-minutes: 60 |
| 19 | + permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created |
| 20 | + actions: write |
| 21 | + contents: read |
9 | 22 | strategy: |
10 | 23 | fail-fast: false |
11 | 24 | matrix: |
12 | 25 | version: |
13 | | - - '1' |
| 26 | + - '1.11' |
14 | 27 | os: |
15 | 28 | - ubuntu-latest |
16 | 29 | arch: |
17 | 30 | - x64 |
18 | 31 | steps: |
19 | | - - uses: actions/checkout@v2 |
20 | | - - uses: julia-actions/setup-julia@v1 |
| 32 | + - uses: actions/checkout@v4 |
| 33 | + - uses: julia-actions/setup-julia@v2 |
21 | 34 | with: |
22 | 35 | version: ${{ matrix.version }} |
23 | 36 | arch: ${{ matrix.arch }} |
24 | | - - uses: actions/cache@v2 |
25 | | - env: |
26 | | - cache-name: cache-artifacts |
27 | | - with: |
28 | | - path: ~/.julia/artifacts |
29 | | - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
30 | | - restore-keys: | |
31 | | - ${{ runner.os }}-test-${{ env.cache-name }}- |
32 | | - ${{ runner.os }}-test- |
33 | | - ${{ runner.os }}- |
| 37 | + - uses: julia-actions/cache@v2 |
34 | 38 | - uses: julia-actions/julia-buildpkg@v1 |
35 | 39 | - uses: julia-actions/julia-runtest@v1 |
36 | 40 | - uses: julia-actions/julia-processcoverage@v1 |
37 | 41 | - uses: codecov/codecov-action@v4 |
38 | 42 | with: |
39 | | - file: lcov.info |
| 43 | + files: lcov.info |
40 | 44 | token: ${{ secrets.CODECOV_TOKEN }} |
| 45 | + fail_ci_if_error: false |
0 commit comments