Skip to content

Update main.yaml

Update main.yaml #96

Workflow file for this run

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
- 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