chore(deps): bump the actions group across 1 directory with 3 updates #63
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: Build | |
| on: | |
| pull_request: | |
| branches: ["**"] | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| install-tools: | |
| if: "!contains(github.event.head_commit.message, 'Merge pull request')" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Install all tools | |
| run: make tools | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| name: tools | |
| path: bin/ | |
| tests: | |
| needs: install-tools | |
| if: "!contains(github.event.head_commit.message, 'Merge pull request')" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - uses: actions/download-artifact@v6 | |
| with: | |
| name: tools | |
| path: bin/ | |
| - name: Set bin as executable | |
| run: chmod +x bin/* | |
| - name: Run tests | |
| run: make test | |
| lint: | |
| needs: install-tools | |
| if: "!contains(github.event.head_commit.message, 'Merge pull request')" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - uses: actions/download-artifact@v6 | |
| with: | |
| name: tools | |
| path: bin/ | |
| - name: Set bin as executable | |
| run: chmod +x bin/* | |
| - name: Run linter | |
| run: make lint | |
| generate: | |
| needs: install-tools | |
| if: "!contains(github.event.head_commit.message, 'Merge pull request')" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - uses: actions/download-artifact@v6 | |
| with: | |
| name: tools | |
| path: bin/ | |
| - name: Set bin as executable | |
| run: chmod +x bin/* | |
| - run: go mod download | |
| - name: Run generate | |
| run: make generate | |
| - name: Porcelain | |
| shell: bash | |
| run: | | |
| dirty_files="$(git status --porcelain)" | |
| if [[ `git status --porcelain` ]]; then | |
| echo "The following files are dirty after running generators:" | |
| echo "${dirty_files}" | |
| exit 1 | |
| fi |