|
1 | | -on: [push, pull_request] |
2 | 1 | name: Test |
| 2 | + |
| 3 | +# Default to 'contents: read', which grants actions to read commits. |
| 4 | +# |
| 5 | +# If any permission is set, any permission not included in the list is |
| 6 | +# implicitly set to "none". |
| 7 | +# |
| 8 | +# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions |
| 9 | +permissions: |
| 10 | + contents: read |
| 11 | + |
| 12 | +concurrency: |
| 13 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 14 | + cancel-in-progress: true |
| 15 | + |
| 16 | +on: [push, pull_request] |
| 17 | + |
3 | 18 | jobs: |
4 | 19 | test: |
5 | 20 | strategy: |
6 | 21 | matrix: |
7 | 22 | go-version: [1.18.x, oldstable, stable] |
8 | 23 | platform: [ubuntu-22.04, ubuntu-24.04, windows-2022, windows-2025, macos-15, macos-26] |
9 | 24 | runs-on: ${{ matrix.platform }} |
| 25 | + timeout-minutes: 10 # guardrails timeout for the whole job |
10 | 26 | defaults: |
11 | 27 | run: |
12 | 28 | shell: bash |
13 | 29 | steps: |
14 | 30 | - name: Checkout code |
15 | | - uses: actions/checkout@v4 |
| 31 | + uses: actions/checkout@v6 |
16 | 32 | - name: Install Go |
17 | | - uses: actions/setup-go@v5 |
| 33 | + uses: actions/setup-go@v6 |
18 | 34 | with: |
19 | 35 | go-version: ${{ matrix.go-version }} |
20 | 36 | # Disable caching as we don't have top-level go.sum needed for |
21 | 37 | # the cache key, and specifying multiple go.sums is not trivial |
22 | 38 | # (see https://github.com/moby/sys/pull/160 for details). |
23 | 39 | cache: false |
24 | 40 | - name: Install golangci-lint |
25 | | - uses: golangci/golangci-lint-action@v8 |
| 41 | + uses: golangci/golangci-lint-action@v9 |
26 | 42 | with: |
27 | | - version: v2.4 |
| 43 | + version: v2.10 |
28 | 44 | # We don't need to run golangci-lint here yet, but |
29 | 45 | # there's no way to avoid it, so run it on one module. |
30 | 46 | working-directory: ./mountinfo |
|
70 | 86 |
|
71 | 87 | codespell: |
72 | 88 | runs-on: ubuntu-24.04 |
| 89 | + timeout-minutes: 10 # guardrails timeout for the whole job |
73 | 90 | steps: |
74 | | - - uses: actions/checkout@v4 |
| 91 | + - uses: actions/checkout@v6 |
75 | 92 | - run: pip install --break-system-packages codespell==v2.3.0 |
76 | 93 | - run: codespell |
0 commit comments