Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 27ff2f3

Browse files
Update ci workflows (add go1.21) (#345)
1 parent 6879d2c commit 27ff2f3

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

‎.github/workflows/build.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
go: ["1.18.x", "1.19.x", "1.20.x"]
16+
go: ["1.19", "1.20", "1.21"]
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: Setup Go
2121
uses: actions/setup-go@v4
2222
with:
2323
go-version: "${{ matrix.go }}"
2424
check-latest: true
25-
cache: true
2625
- name: Check Go code formatting
2726
run: |
2827
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
@@ -34,7 +33,7 @@ jobs:
3433
run: |
3534
go install github.com/mfridman/tparse@latest
3635
go vet ./...
37-
go test -v -race -count=1 -json -coverpkg=$(go list ./...) ./... | tee output.json | tparse -follow -notests || true
36+
go test -v -race -count=1 -json -cover ./... | tee output.json | tparse -follow -notests || true
3837
tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY
3938
go build ./...
4039
coverage:

‎.github/workflows/lint.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
- name: Setup Go
1515
uses: actions/setup-go@v4
1616
with:
17-
go-version: "1.20.x"
17+
go-version: "1.21"
1818
check-latest: true
19-
cache: true
2019
- name: golangci-lint
2120
uses: golangci/golangci-lint-action@v3
2221
with:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /