Skip to content

Commit

Permalink
refactor: add external_jsonlib_test into go.work and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Sep 20, 2022
1 parent a324525 commit 60fa111
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/benchmark-linux-amd64.yml
Expand Up @@ -23,8 +23,11 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Benchmark
- name: Benchmark sonic
run: sh bench.sh

# - name: Benchmark third-party
# run: go test -benchmem -run=^$ -bench . -v ./generic_test

# - name: Diff
# run: ./bench.py -b '"^Benchmark.*Sonic"' -c
9 changes: 4 additions & 5 deletions .github/workflows/push-check-go118.yml
Expand Up @@ -21,10 +21,9 @@ jobs:
${{ runner.os }}-go-
- name: Unit Test
run: GOMAXPROCS=4 go test -v -gcflags=-d=checkptr=0 -race ./...
run: |
GOMAXPROCS=4 go test -v -gcflags=-d=checkptr=0 -race ./...
GOMAXPROCS=4 go test -v -gcflags=-d=checkptr=0 -race ./external_jsonlib_test/...
- name: Generic Test
run: GOMAXPROCS=4 go test -v -gcflags=-d=checkptr=0 -race ./generic_test

- name: Benchmark
run: go test -benchmem -run=^$ -bench . -v ./generic_test
run: GOMAXPROCS=4 go test -v -gcflags=-d=checkptr=0 -race ./generic_test
5 changes: 4 additions & 1 deletion .github/workflows/push-check-linux-amd64.yml
Expand Up @@ -24,4 +24,7 @@ jobs:
${{ runner.os }}-go-
- name: Unit Test
run: go test -v -gcflags=-d=checkptr=0 ./...
run: |
go test -v -gcflags=-d=checkptr=0 ./...
cd ./external_jsonlib_test
go test -v -gcflags=-d=checkptr=0 ./...
5 changes: 0 additions & 5 deletions external_jsonlib_test/go.work

This file was deleted.

1 change: 1 addition & 0 deletions go.work
Expand Up @@ -4,4 +4,5 @@ use (
.
./generic_test
./fuzz
./external_jsonlib_test
)

0 comments on commit 60fa111

Please sign in to comment.