Skip to content

Workflow file for this run

name: Go Tests and Benchmarks
on: [push, pull_request]
jobs:
test-and-benchmark-mac:
runs-on: [self-hosted, macOS, ARM64]
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '^1.22' # Use the version of Go in your project
- name: Run tests
run: go test ./...
- name: Run benchmarks
run: go test -bench=.
test-and-benchmark-win:
runs-on: [self-hosted, Windows, X64]
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '^1.22' # Use the version of Go in your project
- name: Run tests
run: go test ./...
- name: Run benchmarks
run: go test -bench=.