Merge pull request #2253 from ikemen-engine/fix #517
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
on: | |
workflow_dispatch: | |
push: | |
branches: [ develop, release ] | |
#pull_request_target: | |
# branches: [ develop, release ] | |
permissions: write-all | |
name: lint-code-style | |
jobs: | |
lint-code-style: | |
name: style linters | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Golang with cache | |
uses: magnetikonline/action-golang-cache@v5 | |
with: | |
go-version: ~1.20 | |
- name: Run linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
github_token: "${{ secrets.IKEMEN_TOKEN }}" | |
gofmt: true | |
continue_on_error: false | |
auto_fix: true | |
commit_message: "style: fix code style issues with ${linter}" | |
neutral_check_on_warning: true |