Skip to content

Commit

Permalink
Update CI (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Mar 13, 2023
1 parent fbd4fee commit 098041a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ 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:
name: Test
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
Expand All @@ -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 )
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 098041a

Please sign in to comment.