Skip to content

Commit

Permalink
CI: run go vet, remove codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
mazznoer committed Aug 2, 2024
1 parent b1c13f0 commit 4e2b2d3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,22 @@ jobs:

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.x
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'

- name: Build
run: go build -v .

- name: Vet
run: go vet .

- name: Test
run: go test -v -coverprofile coverage.out && go tool cover -html coverage.out -o coverage.html

- name: Format
if: matrix.os == 'ubuntu-latest'
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi

- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3

0 comments on commit 4e2b2d3

Please sign in to comment.