Skip to content

test

test #6

Workflow file for this run

name: "Test"
on:
pull_request:
push:
workflow_call:
jobs:
package-test:
strategy:
matrix:
go: ["1.23"]
os: ["ubuntu-latest", "macos-latest"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Setup Go"
uses: "actions/setup-go@v5"
with:
go-version: "${{ matrix.go }}"
- name: "Unit tests"
run: |
go clean -cache
go test -count=1 ./...
full-build-test:
strategy:
matrix:
go: ["1.23"]
os: ["ubuntu-latest", "macos-latest"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
submodules: "recursive"
- name: "Setup Go"
uses: "actions/setup-go@v5"
with:
go-version: "${{ matrix.go }}"
- name: "Macos: install clang/llvm"
if: |
matrix.os == 'macos-latest'
run: |
brew update
brew install llvm
- name: "Remove packaged c++ libraries and go code"
run: |
rm ./lib/* ./**/*_string.go
- name: "Generate go code and build+install c++ library"
run: |
go install golang.org/x/tools/cmd/stringer@latest
go generate ./...
- name: "Unit tests"
run: |
go clean -cache
go test -count=1 ./...