Replace per-entry default_rust with top-level default_distro. (#12) #48
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: lint | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| json: | |
| name: validate JSON | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: install check-jsonschema | |
| run: pipx install check-jsonschema | |
| - name: validate JSON files | |
| run: ./scripts/validate-json.sh | |
| dockerfile: | |
| name: hadolint | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: hadolint | |
| uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0 | |
| with: | |
| dockerfile: Dockerfile | |
| config: .hadolint.yaml | |
| shellcheck: | |
| name: shellcheck | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: shellcheck | |
| uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0 | |
| with: | |
| scandir: scripts | |
| severity: style | |
| shell: | |
| name: validate shell | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: validate shell scripts | |
| run: ./scripts/validate-shell.sh | |
| matrix-smoke: | |
| name: resolve-matrix smoke | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: resolve and validate matrix | |
| run: ./scripts/resolve-matrix.sh | jq -e '.include | length > 0' >/dev/null | |
| complete: | |
| if: always() | |
| needs: | |
| - json | |
| - dockerfile | |
| - shellcheck | |
| - shell | |
| - matrix-smoke | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: check upstream jobs | |
| if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
| run: exit 1 |