Skip to content

Commit

Permalink
Fix benchmark job
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed May 9, 2021
1 parent 33f2568 commit ec7aec5
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/go.yml
Expand Up @@ -39,10 +39,20 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: checkout
- name: checkout ( feature )
uses: actions/checkout@v2
- name: run benchmark ( feature )
run: cd benchmarks && go test -bench GoJson | tee $HOME/new.txt
- name: install benchcmp
run: go get -u golang.org/x/tools/cmd/benchcmp
- name: checkout ( master )
uses: actions/checkout@v2
- name: run benchmark
run: cd benchmarks && go test -bench .
with:
ref: master
- name: run benchmark ( master )
run: cd benchmarks && go test -bench GoJson | tee $HOME/old.txt
- name: compare benchmark results
run: benchcmp $HOME/old.txt $HOME/new.txt
coverage:
name: Coverage
runs-on: ubuntu-latest
Expand Down

0 comments on commit ec7aec5

Please sign in to comment.