Skip to content

Commit

Permalink
Consolidate golangci-lint into existing go ci workflow (warrant-dev#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
akajla09 authored Jul 25, 2023
1 parent 7f55a02 commit 3f04848
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: "Go Build/Test/Checks"
name: "Go Build/Test/Check/Lint"

on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
pull-requests: read
jobs:
ci:
runs-on: ubuntu-latest
Expand All @@ -13,6 +16,7 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: "^1.20.4"
cache: false
- name: Checkout
uses: actions/checkout@v3
with:
Expand All @@ -27,3 +31,10 @@ jobs:
distribution: goreleaser
version: latest
args: check
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: -v --timeout=5m
only-new-issues: true
install-mode: "binary"
30 changes: 0 additions & 30 deletions .github/workflows/golangci-lint.yml

This file was deleted.

0 comments on commit 3f04848

Please sign in to comment.