Update gold; remove a bunch of negative tests that are no longer nega… #73
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: | |
branches: | |
- master | |
- "*" | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: ["1.18.x"] | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Check style | |
run: | | |
gofmt -w -s . | |
go generate ./... | |
git diff --exit-code | |
- name: Go tests | |
run: | | |
go vet -composites=false ./... | |
go test -v ./... | |
- name: End-to-end CLI tests | |
run: | | |
./test/bats/bin/bats ./test/goose.bats |