Bump github.com/spf13/viper from 1.10.1 to 1.17.0 #108
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: Run tests and build in branch | |
on: | |
push: | |
branches: | |
- '*' | |
- '!main' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Build latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.17 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
args: --timeout=30m | |
- name: Test | |
run: go test -v ./... | |
- name: Build | |
run: go build -v . | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/golang@master | |
continue-on-error: true | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
args: --sarif-file-output=snyk.sarif |