Add taskWrapper and clean up code (#1) #3
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: Go Lint on Push | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "*/**" | |
- "*.go" | |
- go.* | |
- "!.github/**" | |
- "!tmp/**" | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "stable" | |
cache: false # disable cache to avoid conflicts with golangci | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
args: --timeout=5m |