Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Add solution day 22 part 2 #110

Add solution day 22 part 2

Add solution day 22 part 2 #110

Workflow file for this run

name: gofmt
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
formatting:
name: Check Go Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Check formatting with gofmt
run: |
unformatted=$(gofmt -l .)
if [[ -n "$unformatted" ]]; then
echo "Unformatted files detected:"
echo "$unformatted"
exit 1
fi