Skip to content

Commit

Permalink
Actually add lint job to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpt-erikgeiser committed Mar 24, 2023
1 parent a2eb67f commit 14d664c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/check.yml
@@ -0,0 +1,35 @@
name: Lint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
id: go

- name: Checkout code
uses: actions/checkout@v3

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51
args: --verbose --timeout 5m

- name: Check go.mod/go.sum
run: |
echo "check if go.mod and go.sum are up to date"
go mod tidy
git diff --exit-code go.mod go.sum

0 comments on commit 14d664c

Please sign in to comment.