Skip to content

Implement testing

Implement testing #1

Workflow file for this run

name: Go Test
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22
cache-dependency-path: "**/*.sum"
- name: Install dependencies
run: go mod download
- name: Test with Go
run: go test /... -json > TestResults.json
- name: Upload Go test results
uses: actions/upload-artifact@v4
with:
name: Go-test-results
path: TestResults.json