Tidy #1537
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: gotest | |
on: | |
pull_request: | |
branches: [ '**' ] | |
jobs: | |
tests: | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get dependencies | |
run: | | |
go get -v -t ./... | |
go install gotest.tools/gotestsum@latest | |
- name: modVerify | |
run: go mod verify | |
- name: Run Tests with go testsum | |
run: gotestsum --format pkgname --jsonfile test.json | |
- name: Annotate tests | |
if: always() | |
uses: guyarb/golang-test-annotations@v0.8.0 | |
with: | |
test-results: test.json |