mirror of
https://github.com/hibiken/asynq.git
synced 2024-11-10 11:31:58 +08:00
(ci): Run go (build|test) commands for each module
This commit is contained in:
parent
10ab4e3745
commit
8bd70c6f84
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -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 ./...
|
||||
|
||||
|
@ -9,6 +9,7 @@ require (
|
||||
github.com/hibiken/asynq/x v0.0.0-20220131170841-349f4c50fb1d
|
||||
github.com/mitchellh/go-homedir v1.1.0
|
||||
github.com/prometheus/client_golang v1.11.0
|
||||
github.com/spf13/afero v1.1.2 // indirect
|
||||
github.com/spf13/cobra v1.1.1
|
||||
github.com/spf13/viper v1.7.0
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user