diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index a2fe5a3..49779f0 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -1,13 +1,13 @@ name: '🚔' on: [ push ] jobs: - job: + verify: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v3.3.0 + - uses: actions/setup-go@v3.5.0 with: go-version-file: 'go.mod' check-latest: true cache: true - - run: make lint check + - run: 'make check' diff --git a/Makefile b/Makefile index 9029531..62507b2 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,7 @@ BIN_NAME = $(shell basename $(MOD_NAME)) out/$(BIN_NAME): $(shell ls go.mod go.sum *.go) go build -race -o out/$(BIN_NAME) -.PHONY: lint -lint: - go vet - .PHONY: check check: + go vet go test -v -parallel $(shell grep -c -E "^processor.*[0-9]+" "/proc/cpuinfo") $(MOD_NAME)/...