Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp2010 committed Sep 2, 2021
1 parent 2278ebe commit 86b5ba7
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/go-lint.yml
Expand Up @@ -12,44 +12,8 @@ on:
- 'api/**'

jobs:
go-filter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodule: true

- uses: ./.github/actions/paths-filter
id: changes
with:
filters: |
go:
- '**.go'
working-directory: 'api'
list-files: shell
outputs:
matches: ${{ steps.changes.outputs.go }}
files: ${{ steps.changes.outputs.go_files }}

golangci:
runs-on: ubuntu-latest
needs: go-filter
if: needs.go-filter.outputs.matches == 'true'
steps:
- uses: actions/checkout@v2

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
working-directory: api
args: --tests=false
only-new-issues: true

gofmt:
runs-on: ubuntu-latest
needs: go-filter
if: needs.go-filter.outputs.matches == 'true'
steps:
- uses: actions/checkout@v2
- name: setup go
Expand Down

0 comments on commit 86b5ba7

Please sign in to comment.