-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0188d1c
commit 7915d76
Showing
6 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: golangci-lint step | ||
description: golangci-lint step | ||
inputs: | ||
linters: | ||
description: Linter to run | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Golang CI 2 | ||
run: | | ||
templ generate | ||
LINTERS="${{ inputs.linters }}" | ||
golangci-lint run --disable-all -E ${LINTERS//;/ -E } | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Fail Fast | ||
|
||
on: [workflow_call] | ||
|
||
jobs: | ||
format-check: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: mattgomes28/urchin-golang:0.2 | ||
options: --user 1001 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/workflows/actions/golangci-lint | ||
name: Running Linters 🧪 | ||
with: | ||
linters: errcheck;staticcheck;unused;gosimple;gofmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters