Skip to content

Commit

Permalink
ci check
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Feb 25, 2023
1 parent e6dfbcf commit 0b3da3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
@@ -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'
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)/...

0 comments on commit 0b3da3d

Please sign in to comment.