mirror of https://github.com/golang-jwt/jwt.git
Update ci workflows (add go1.21) (#345)
This commit is contained in:
parent
6879d2cf1f
commit
27ff2f3868
|
@ -13,16 +13,15 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
go: ["1.18.x", "1.19.x", "1.20.x"]
|
go: ["1.19", "1.20", "1.21"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "${{ matrix.go }}"
|
go-version: "${{ matrix.go }}"
|
||||||
check-latest: true
|
check-latest: true
|
||||||
cache: true
|
|
||||||
- name: Check Go code formatting
|
- name: Check Go code formatting
|
||||||
run: |
|
run: |
|
||||||
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
|
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
|
||||||
|
@ -34,7 +33,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
go install github.com/mfridman/tparse@latest
|
go install github.com/mfridman/tparse@latest
|
||||||
go vet ./...
|
go vet ./...
|
||||||
go test -v -race -count=1 -json -coverpkg=$(go list ./...) ./... | tee output.json | tparse -follow -notests || true
|
go test -v -race -count=1 -json -cover ./... | tee output.json | tparse -follow -notests || true
|
||||||
tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY
|
tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY
|
||||||
go build ./...
|
go build ./...
|
||||||
coverage:
|
coverage:
|
||||||
|
|
|
@ -10,13 +10,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.20.x"
|
go-version: "1.21"
|
||||||
check-latest: true
|
check-latest: true
|
||||||
cache: true
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue