-
Notifications
You must be signed in to change notification settings - Fork 0
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
0093776
commit 8a58d74
Showing
2 changed files
with
44 additions
and
2 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 |
---|---|---|
|
@@ -8,8 +8,8 @@ on: | |
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
if: "!startsWith(github.ref, 'refs/tags/')" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
|
@@ -19,4 +19,32 @@ jobs: | |
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.59 | ||
working-directory: "${{ inputs.workdir }}" | ||
working-directory: "${{ inputs.workdir }}" | ||
go_tidy: | ||
runs-on: ubuntu-latest | ||
if: "!startsWith(github.ref, 'refs/tags/')" | ||
container: | ||
image: cubicrootxyz/golang-ci:v1.22.5-3 | ||
options: --user root | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: Run go mod tidy | ||
run: (cd ${{ inputs.workdir }} && go mod tidy) | ||
- name: Run git diff | ||
run: git diff --exit-code | ||
go_generate: | ||
runs-on: ubuntu-latest | ||
if: "!startsWith(github.ref, 'refs/tags/')" | ||
container: | ||
image: cubicrootxyz/golang-ci:v1.22.5-3 | ||
options: --user root | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: Install mockgen | ||
run: go install github.com/golang/mock/[email protected] | ||
- name: Run go generate | ||
run: go generate ${{ inputs.workdir }}... | ||
- name: Run git diff | ||
run: git diff --exit-code |
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