Skip to content

Commit 43fccb3

Browse files
refactor: actions
1 parent f587fc1 commit 43fccb3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,27 @@ on:
44
branches:
55
- main
66
pull_request:
7+
paths:
8+
- '**.go'
9+
- go.mod
10+
- go.sum
11+
- .github/workflows/ci.yml
712

8-
permissions:
9-
contents: read
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
1016

1117
jobs:
1218
ci:
1319
name: test and lint
1420
runs-on: ubuntu-latest
1521
steps:
1622
- name: Checkout
17-
uses: actions/checkout@v4
18-
- name: Set up Go
23+
uses: actions/checkout@v4.2.2
24+
- name: Setup Go
1925
uses: actions/setup-go@v5
2026
with:
21-
go-version: stable
27+
go-version-file: 'go.mod'
2228
- name: Run test
2329
run: go test -v ./...
2430
- name: Run golangci-lint

0 commit comments

Comments
 (0)