-
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.
#213 add golangci-lint job to pull request check
- Loading branch information
Vladimir Tarbaev
committed
Oct 15, 2024
1 parent
93c8719
commit dc813f3
Showing
6 changed files
with
48 additions
and
16 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
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,42 @@ | ||
name: PR checks | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
- 'docs/**' | ||
- 'mkdocs.yml' | ||
- 'LICENSE' | ||
- 'getting_started.md' | ||
- 'docker-compose.yml' | ||
- 'playground/**' | ||
- 'CNAME' | ||
- 'requirements.txt' | ||
|
||
env: | ||
go-version: '1.23.2' | ||
golangci-lint-version: v1.60 | ||
|
||
jobs: | ||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
|
||
build: | ||
uses: ./.github/workflows/build.yml | ||
needs: | ||
- tests | ||
|
||
lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.go-version }} | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: ${{ env.golangci-lint-version }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,6 @@ on: | |
paths: | ||
- 'docs/**' | ||
|
||
env: | ||
python-version: 'pypy3.10' | ||
|
||
jobs: | ||
docs: | ||
uses: ./.github/workflows/docs.yml |