Skip to content

Commit

Permalink
add CI with golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
claudionts committed Aug 14, 2024
1 parent 12d3170 commit c4efa9d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Go

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Install dependencies
run: go get .
- name: Test with the Go CLI
run: go test ./...

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59

0 comments on commit c4efa9d

Please sign in to comment.