chore: make errors fail tests immediately #219
Workflow file for this run
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: Regression Tests | |
on: | |
push: | |
branches: | |
- main | |
# Currently, there doesn't appear to be a simple solution for | |
# having required checks with ignored paths (the checks will | |
# never run and so PRs cannot be merged). | |
# paths-ignore: | |
# - "**/*.md" | |
# - "LICENSE" | |
pull_request: | |
# paths-ignore: | |
# - "**/*.md" | |
# - "LICENSE" | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.19.x, 1.20.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: true | |
- name: Tests and coverage | |
run: go run mage.go coverage |