Document rules and expand test coverage for loader and rules #7
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: Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.x' | |
- name: Install dependencies | |
run: go get . | |
- name: Set up gotestfmt | |
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest | |
- name: Build | |
run: go build -v ./... | |
- name: Unit Tests | |
run: go test -v -json -race -coverprofile=cover.out ./... | gotestfmt | |
- name: CLI Integration Tests | |
run: go test -v -json -race main_test.go | gotestfmt |