Merge pull request #1049 from Cali0707/improved-like-matching #1497
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: Code Style | |
on: | |
push: | |
branches: [ 'main', 'release-*' ] | |
pull_request: | |
branches: [ 'main', 'release-*' ] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
cache-dependency-path: v2/go.sum | |
id: go | |
- id: golangci_configuration | |
uses: andstor/file-existence-action@v3 | |
with: | |
files: .golangci.yaml | |
- name: Go Lint on ./v2 | |
if: steps.golangci_configuration.outputs.files_exists == 'true' | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.54 | |
working-directory: v2 | |