Update CI (#439)

This commit is contained in:
Masaaki Goshima 2023-03-13 21:24:58 +09:00 committed by GitHub
parent fbd4feeb60
commit 098041a708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 13 deletions

View File

@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: build
run: docker-compose run go-json
test:
@ -18,15 +18,15 @@ jobs:
strategy:
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
go-version: [ "1.16", "1.17", "1.18" ]
go-version: [ "1.18", "1.19", "1.20" ]
runs-on: ${{ matrix.os }}
steps:
- name: setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: simple test
run: go test -v ./... -count=1
- name: test with GC pressure
@ -40,17 +40,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: '1.20'
- name: checkout ( feature )
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: run benchmark ( feature )
run: cd benchmarks && go test -bench GoJson | tee $HOME/new.txt
- name: install benchstat
run: go install golang.org/x/perf/cmd/benchstat@latest
- name: checkout ( master )
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: master
- name: run benchmark ( master )
@ -62,14 +62,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: '1.20'
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: measure coverage
run: make cover
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true

View File

@ -9,7 +9,7 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
with:
version: v1.45.2