feat: get snyk api endpoint from env (#67) #232
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: CI | |
on: | |
push: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.3 | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
- name: Build | |
run: go build -v -o parlay | |
- name: Unit tests | |
run: go test -v ./... | |
- name: Setup BATS | |
uses: mig4/setup-bats@v1 | |
with: | |
bats-version: 1.9.0 | |
- name: Acceptance tests | |
run: bats -r . |