Skip to content

Commit

Permalink
github/workflows: add linting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
julieta-311 authored Oct 28, 2023
1 parent 9d0fee6 commit 5ecafed
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Golangci lint
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
env:
GOFLAGS: -mod=mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
skip-pkg-cache: true

0 comments on commit 5ecafed

Please sign in to comment.