Skip to content

Commit

Permalink
update github lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Lobo committed Jul 7, 2024
1 parent 74fbd81 commit 6ba1ace
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: golangci-lint

# Controls when the action will run. Triggers the workflow on push or pull requests
on: [push, pull_request]
on:
push:
branches:
- main
- master
pull_request:
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
version: v1.59

0 comments on commit 6ba1ace

Please sign in to comment.