Skip to content

Add a unit test

Add a unit test #18

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "trunk" ]
pull_request:
branches: [ "trunk" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1.19'
- '1.20'
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...