gha: build base then permutations; update local bake smoke #38
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: Pre-commit | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ "main", "modernization.20251118" ] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Install lint dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y hadolint shellcheck | |
| - name: Run repository pre-commit script (hadolint/shellcheck guard) | |
| run: | | |
| chmod +x scripts/pre_commit.sh | |
| scripts/pre_commit.sh | |
| - name: Run pre-commit | |
| uses: pre-commit/action@v4.0.1 | |
| with: | |
| extra_args: --config .pre-commit-config.yaml |