fix: stabilize through locking #102
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: Test | |
on: | |
pull_request: | |
paths-ignore: | |
- "**/*.md" | |
push: | |
paths-ignore: | |
- "**/*.md" | |
branches: | |
- "main" | |
workflow_dispatch: | |
inputs: | |
go-test-count: | |
description: 'Test Count' | |
required: true | |
default: 1 | |
jobs: | |
unit-tests: | |
env: | |
GOTOOLCHAIN: local | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.22.5' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Display Go version | |
run: go version | |
- name: Run tests | |
run: sudo go test ./... -test.count=${{ github.event.inputs.go-test-count > 0 && github.event.inputs.go-test-count || 1 }} | |
- name: Run simple example | |
run: sudo go run examples/simple/main.go | |
- name: Run activation example | |
run: sudo go run examples/activation/main.go | |
- name: Run thinpool example | |
run: sudo go run examples/thinpool/main.go |