Skip to content

docs: native project documentation (#522) #218

docs: native project documentation (#522)

docs: native project documentation (#522) #218

Workflow file for this run

---
# This workflow will run the tests across a matrix of operating systems.
name: Go Test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
go-tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Go Tests (${{ matrix.os }})
steps:
- name: Checkout Repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
cache: true
- name: Run Tests
shell: bash
run: |
echo "Testing with $(go env GOVERSION) on ${{ matrix.os }}"
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
go test -race -count 1 ./... -timeout=3m
else
go test -count 1 ./... -timeout=3m
fi