Add acceptance tests #35
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: Go | |
on: | |
push: | |
branches: [ "trunk" ] | |
pull_request: | |
branches: [ "trunk" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: | |
- '1.19' | |
- '1.20' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Build all packages | |
run: go build -v ./... | |
- name: Run Go tests | |
run: go test -v ./... | |
- name: Run bash tests | |
run: | | |
chmod +x test.sh | |
./test.sh |