Skip to content

Commit 469a746

Browse files
authored
Merge pull request #210 from thaJeztah/bump_actions
gha: update various actions and update settings
2 parents 8713363 + 73527a1 commit 469a746

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,46 @@
1-
on: [push, pull_request]
21
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+
318
jobs:
419
test:
520
strategy:
621
matrix:
722
go-version: [1.18.x, oldstable, stable]
823
platform: [ubuntu-22.04, ubuntu-24.04, windows-2022, windows-2025, macos-15, macos-26]
924
runs-on: ${{ matrix.platform }}
25+
timeout-minutes: 10 # guardrails timeout for the whole job
1026
defaults:
1127
run:
1228
shell: bash
1329
steps:
1430
- name: Checkout code
15-
uses: actions/checkout@v4
31+
uses: actions/checkout@v6
1632
- name: Install Go
17-
uses: actions/setup-go@v5
33+
uses: actions/setup-go@v6
1834
with:
1935
go-version: ${{ matrix.go-version }}
2036
# Disable caching as we don't have top-level go.sum needed for
2137
# the cache key, and specifying multiple go.sums is not trivial
2238
# (see https://github.com/moby/sys/pull/160 for details).
2339
cache: false
2440
- name: Install golangci-lint
25-
uses: golangci/golangci-lint-action@v8
41+
uses: golangci/golangci-lint-action@v9
2642
with:
27-
version: v2.4
43+
version: v2.10
2844
# We don't need to run golangci-lint here yet, but
2945
# there's no way to avoid it, so run it on one module.
3046
working-directory: ./mountinfo
@@ -70,7 +86,8 @@ jobs:
7086

7187
codespell:
7288
runs-on: ubuntu-24.04
89+
timeout-minutes: 10 # guardrails timeout for the whole job
7390
steps:
74-
- uses: actions/checkout@v4
91+
- uses: actions/checkout@v6
7592
- run: pip install --break-system-packages codespell==v2.3.0
7693
- run: codespell

0 commit comments

Comments
 (0)