(ci): Run go (build|test) commands for each module

This commit is contained in:
Ken Hibino
2022-02-01 06:32:26 -08:00
parent 10ab4e3745
commit 8bd70c6f84
2 changed files with 12 additions and 2 deletions

View File

@@ -22,12 +22,21 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- name: Build
- name: Build core module
run: go build -v ./...
- name: Test
- name: Build x module
run: cd x && go build -v ./... && cd ..
- name: Build tools module
run: cd tools && go build -v ./... && cd ..
- name: Test core module
run: go test -race -v -coverprofile=coverage.txt -covermode=atomic ./...
- name: Test x module
run: cd x && go test -race -v ./... && cd ..
- name: Benchmark Test
run: go test -run=^$ -bench=. -loglevel=debug ./...