Feature/si 2694 add validation to definitionsyaml in model garage #93
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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: ["1.22"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
# You can test your matrix by printing the current Go version | |
- 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 |