Merge pull request #156 from sveltinio/update-go-deps #166
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: Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
lint: | |
name: Lint files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out sveltin | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.17.1 | |
cache: true | |
cache-dependency-path: go.sum | |
- name: Install Go modules | |
run: go mod download | |
- name: Verify dependencies | |
run: go mod verify | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest |