Skip to content

Commit

Permalink
Add lint to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
uudashr committed Jul 14, 2024
1 parent 7f69830 commit 0c6ce49
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,29 @@ on:

jobs:

build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.22.x']

steps:
- uses: actions/checkout@v4

- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Test
run: go test -v ./...

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- uses: golangci/golangci-lint-action@v6
with:
version: latest
install-mode: goinstall

0 comments on commit 0c6ce49

Please sign in to comment.