Skip to content

Do not use atomic to lock when not needed #433

Do not use atomic to lock when not needed

Do not use atomic to lock when not needed #433

Workflow file for this run

name: Go
on:
push:
jobs:
mod:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Tidy modules
run: go mod tidy
- name: Check for changes
run: git add . && git diff --staged --exit-code
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Run tests
run: go test -v -race ./...