Skip to content

Merge pull request #21 from tomtwinkle/enhancement/update-go-modeule #54

Merge pull request #21 from tomtwinkle/enhancement/update-go-modeule

Merge pull request #21 from tomtwinkle/enhancement/update-go-modeule #54

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
test:
strategy:
matrix:
go-version: [ 1.21.x ]
os: [ ubuntu-latest ]
name: Test
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{secrets.GITHUB_TOKEN}}
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Get dependencies
run: |
go install gotest.tools/gotestsum@latest
go get -v -t -d ./...
- name: Test code
run: gotestsum --junitfile unit-tests.xml -- -v -race ./...