Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwutingfeng committed Jul 24, 2022
1 parent 82a646b commit 0ebe702
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: CI
on: [push, pull_request]
name: Test and coverage
jobs:
test-and-coverage:
strategy:
Expand All @@ -13,10 +13,8 @@ jobs:
uses: actions/setup-go@v3
with:
go-version-file: './go.mod'
- name: Tests
- name: Test
run: make tests
- name: Tests with race detection
run: make tests_race
- name: Build CLI app
run: make build_cli
- name: Upload coverage to Codecov
Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
tests:
go test -v -coverprofile coverage.out && go tool cover -html coverage.out -o coverage.html

tests_race:
go test -race -covermode atomic -coverprofile coverage.out && go tool cover -html coverage.out -o coverage.html
go test -v -race -covermode atomic -coverprofile coverage.out && go tool cover -html coverage.out -o coverage.html

format:
go fmt . ./cmd/... ./cmd/fasttld/... ./examples/...
Expand Down

0 comments on commit 0ebe702

Please sign in to comment.