chore: pin go toolchain and unset goroot in devbox #43
This file contains hidden or 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: Format Code (Gofmt) | |
| on: push | |
| permissions: | |
| contents: write | |
| defaults: | |
| run: | |
| working-directory: ./ | |
| jobs: | |
| code-formatting: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Runner Common Setup | |
| uses: mridang/action-runner-common@v1 | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Setup TinyGo | |
| uses: acifani/setup-tinygo@v2 | |
| with: | |
| tinygo-version: '0.39.0' | |
| - name: Run Gofmt | |
| run: make format | |
| - name: Commit and Push Changes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: Apply formatting | |
| commit_options: '--no-verify' | |
| repository: . | |
| commit_user_name: github-actions[bot] | |
| commit_user_email: github-actions[bot]@users.noreply.github.com | |
| commit_author: GitHub Actions <actions@github.com> |