Bump actions/download-artifact from 7 to 8 #126
Workflow file for this run
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: Go Format Check (format.yml) | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| concurrency: | |
| group: pr-format-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.24' | |
| - name: Install goimports | |
| run: go install golang.org/x/tools/cmd/goimports@latest | |
| - name: Check gofmt formatting | |
| run: | | |
| echo "Checking gofmt..." | |
| unformatted=$(gofmt -l .) | |
| if [ -n "$unformatted" ]; then | |
| echo "The following files are not properly formatted:" | |
| echo "$unformatted" | |
| exit 1 | |
| fi | |
| - name: Check goimports formatting | |
| run: | | |
| echo "Checking goimports..." | |
| unformatted=$(goimports -l .) | |
| if [ -n "$unformatted" ]; then | |
| echo "The following files are not properly goimports-formatted:" | |
| echo "$unformatted" | |
| exit 1 | |
| fi |