Skip to content

add unit tests

add unit tests #224

Workflow file for this run

name: Run tests
on: [ push, pull_request ]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
version: ['1.23.1' ]
platform: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Update vendor modules
run: go mod vendor
- name: Build
run: make PREFIX=artifacts cmds
- name: List binaries
run: ls -al artifacts/
- name: Test
run: go test -v -race ./...