Skip to content

fix race condition in tests #547

fix race condition in tests

fix race condition in tests #547

Workflow file for this run

name: Go Code Format Check
on:
pull_request:
types: [opened, synchronize]
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: '1.23'
- name: Run gofmt to check code formatting
run: |
gofmt -l .
continue-on-error: true
- name: Fail if formatting issues found
run: |
FORMATTED=$(gofmt -l .)
if [ -n "$FORMATTED" ]; then
echo "The following files need to be formatted:"
echo "$FORMATTED"
exit 1
fi