This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go Tests and Benchmarks | |
on: [push, pull_request] | |
jobs: | |
test-and-benchmark: | |
runs-on: [self-hosted, Windows] | |
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=. |