Skip to content

Commit

Permalink
Add linter step
Browse files Browse the repository at this point in the history
  • Loading branch information
Piszmog committed Nov 30, 2024
1 parent a576c26 commit ad5573d
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,28 @@ on:
pull_request:
branches: [ main ]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
- run: go mod download
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: |
go get -v -t -d ./...
- run: go mod download
- name: Test and Calculate Coverage
run: go test -v -covermode=count -coverprofile=coverage.out
- name: Convert coverage to lcov
Expand Down

0 comments on commit ad5573d

Please sign in to comment.