Feature/frontend/nursery/logout #224
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
name: golangci-lint | |
on: | |
push: | |
branches: | |
- main # Changed from 'master' to 'main' | |
- develop # Added 'develop' branch | |
pull_request: | |
branches: | |
- main # Specify branches for pull request as well | |
- develop | |
permissions: | |
contents: read | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.5' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.54 | |
working-directory: backend # Set this to the directory where your Go code is located | |
# You can uncomment and adjust the following lines if needed: | |
# args: --timeout=30m --config=/backend/.golangci.yml --issues-exit-code=0 | |
# only-new-issues: true | |
# skip-cache: true | |
# skip-pkg-cache: true | |
# skip-build-cache: true | |
# install-mode: "goinstall" |