| name: "CI" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| lint: | |
| name: "Lint" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - name: Setup Golang Environment | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Run Lint | |
| uses: golangci/golangci-lint-action@v3 |