Skip to content

Better Timeout Responses #69

Better Timeout Responses

Better Timeout Responses #69

Workflow file for this run

name: Go Format
on:
pull_request:
paths:
- "**"
workflow_dispatch:
jobs:
go-fmt:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check gofmt
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "The following files are not formatted properly:"
for file in $unformatted; do
echo "- $file"
done
exit 1
fi