Run Gofmt #12
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: Gofmt on Push | |
# Define the name of the run | |
run-name: Run Gofmt | |
on: | |
push: | |
branches: | |
- main # Adjust to your branch name if necessary | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Run gofmt | |
run: gofmt -w . |