Skip to content

Commit dc57747

Browse files
committed
chore: update CI to use ubuntu-latest by default
1 parent 3bd32c4 commit dc57747

2 files changed

Lines changed: 5 additions & 38 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,7 @@ jobs:
1616
- name: Check Spell
1717
uses: crate-ci/typos@master
1818

19-
staticcheck:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v4
23-
- name: Set up Go
24-
uses: actions/setup-go@v5
25-
with:
26-
go-version: stable
27-
# For self-hosted, the cache path is shared across projects
28-
# and it works well without the cache of github actions
29-
# Enable it if we're going to use Github only
30-
# cache: false
31-
32-
- uses: actions/cache@v3
33-
with:
34-
path: ~/go/pkg/mod
35-
key: reviewdog-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
36-
restore-keys: |
37-
reviewdog-${{ runner.os }}-go-
38-
39-
- uses: reviewdog/action-staticcheck@v1
40-
with:
41-
github_token: ${{ secrets.github_token }}
42-
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review].
43-
reporter: github-pr-review
44-
# Report all results.
45-
filter_mode: nofilter
46-
# Exit with 1 when it find at least one finding.
47-
fail_on_error: true
48-
# Set staticcheck flags
49-
staticcheck_flags: -checks=inherit,-SA1029
50-
51-
lint:
19+
golangci-lint:
5220
runs-on: ubuntu-latest
5321
steps:
5422
- uses: actions/checkout@v4
@@ -59,7 +27,7 @@ jobs:
5927
# for self-hosted, the cache path is shared across projects
6028
# and it works well without the cache of github actions
6129
# Enable it if we're going to use Github only
62-
# cache: false
30+
cache: true
6331

6432
- name: Golangci Lint
6533
# https://golangci-lint.run/

.github/workflows/tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Set up Go
1111
uses: actions/setup-go@v5
1212
with:
13-
go-version: "1.22"
13+
go-version: stable
1414

1515
- name: Unit Test
1616
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
@@ -22,14 +22,13 @@ jobs:
2222
strategy:
2323
matrix:
2424
go: [ "1.19", "1.20", "1.21", "1.22" ]
25-
os: [ X64, ARM64 ]
26-
runs-on: ${{ matrix.os }}
25+
runs-on: ubuntu-latest
2726
steps:
2827
- uses: actions/checkout@v4
2928
- name: Set up Go
3029
uses: actions/setup-go@v5
3130
with:
3231
go-version: ${{ matrix.go }}
33-
cache: false # don't use cache for self-hosted runners
32+
cache: true # don't use cache for self-hosted runners
3433
- name: Unit Test
3534
run: go test -race -covermode=atomic ./...

0 commit comments

Comments
 (0)