mirror of https://github.com/goccy/go-json.git
Update CI (#439)
This commit is contained in:
parent
fbd4feeb60
commit
098041a708
|
@ -10,7 +10,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: build
|
- name: build
|
||||||
run: docker-compose run go-json
|
run: docker-compose run go-json
|
||||||
test:
|
test:
|
||||||
|
@ -18,15 +18,15 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
|
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 }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: setup Go ${{ matrix.go-version }}
|
- name: setup Go ${{ matrix.go-version }}
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: simple test
|
- name: simple test
|
||||||
run: go test -v ./... -count=1
|
run: go test -v ./... -count=1
|
||||||
- name: test with GC pressure
|
- name: test with GC pressure
|
||||||
|
@ -40,17 +40,17 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: setup Go
|
- name: setup Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.18
|
go-version: '1.20'
|
||||||
- name: checkout ( feature )
|
- name: checkout ( feature )
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: run benchmark ( feature )
|
- name: run benchmark ( feature )
|
||||||
run: cd benchmarks && go test -bench GoJson | tee $HOME/new.txt
|
run: cd benchmarks && go test -bench GoJson | tee $HOME/new.txt
|
||||||
- name: install benchstat
|
- name: install benchstat
|
||||||
run: go install golang.org/x/perf/cmd/benchstat@latest
|
run: go install golang.org/x/perf/cmd/benchstat@latest
|
||||||
- name: checkout ( master )
|
- name: checkout ( master )
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
- name: run benchmark ( master )
|
- name: run benchmark ( master )
|
||||||
|
@ -62,14 +62,14 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: setup Go
|
- name: setup Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.18
|
go-version: '1.20'
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: measure coverage
|
- name: measure coverage
|
||||||
run: make cover
|
run: make cover
|
||||||
- uses: codecov/codecov-action@v2
|
- uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
name: lint
|
name: lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: golangci/golangci-lint-action@v3
|
- uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
version: v1.45.2
|
version: v1.45.2
|
||||||
|
|
Loading…
Reference in New Issue