Testing
Last updated
Last updated
go install gotest.tools/gotestsum@latestexport PATH=$PATH:~/go/bingotestsum --junitfile test-results.xml -- ./test/...$ npm install -g @testfiesta/tacotrucktacotruck testfiesta \
run:submit \
--token testfiesta_... \
--handle orgHandle \
--project projectKey \
--name runName \
--data results-path/*.xmlname: Go Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: π¦ Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.24.2"
- name: π¦ Install dependencies
run: go mod download
- name: π¦ Install gotestsum
run: |
go install gotest.tools/gotestsum@latest
export PATH=$PATH:~/go/bin
- name: π§ͺ Run tests
run: gotestsum --junitfile test-results.xml -- ./test/...
- name: Report Results
uses: testfiesta/tacotruck-action@v1
with:
provider: testfiesta
handle: handle
project: project
run-name: Go testing CI run