|
| 1 | +name: Pipeline |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + |
| 6 | +permissions: |
| 7 | + contents: write |
| 8 | + actions: read |
| 9 | + checks: write |
| 10 | + pull-requests: write |
| 11 | + |
| 12 | +jobs: |
| 13 | + lint-commits: |
| 14 | + name: Run Commitlint Checks |
| 15 | + if: github.event_name == 'pull_request' |
| 16 | + uses: ./.github/workflows/commitlint.yml |
| 17 | + with: |
| 18 | + ref: ${{ github.event.pull_request.head.sha }} |
| 19 | + secrets: inherit |
| 20 | + |
| 21 | + code-style: |
| 22 | + name: Run Linter Formatter |
| 23 | + uses: ./.github/workflows/linting.yml |
| 24 | + with: |
| 25 | + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} |
| 26 | + commit_changes: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} |
| 27 | + secrets: inherit |
| 28 | + |
| 29 | + compat-check: |
| 30 | + name: Run Compatibility Checks |
| 31 | + uses: ./.github/workflows/integration.yml |
| 32 | + with: |
| 33 | + library_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} |
| 34 | + sanity_ref: sanity |
| 35 | + secrets: inherit |
| 36 | + |
| 37 | + type-check: |
| 38 | + name: Run Type Checks |
| 39 | + uses: ./.github/workflows/typecheck.yml |
| 40 | + with: |
| 41 | + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} |
| 42 | + secrets: inherit |
| 43 | + |
| 44 | + run-tests: |
| 45 | + name: Run Test Suite |
| 46 | + uses: ./.github/workflows/test.yml |
| 47 | + with: |
| 48 | + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} |
| 49 | + secrets: inherit |
| 50 | + |
| 51 | + code-inspection: |
| 52 | + name: Run Qodana Inspections |
| 53 | + needs: run-tests |
| 54 | + if: ${{ always() }} |
| 55 | + uses: ./.github/workflows/qodana.yml |
| 56 | + with: |
| 57 | + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} |
| 58 | + secrets: inherit |
| 59 | + |
| 60 | + build-docker: |
| 61 | + name: Build Docker Container |
| 62 | + needs: run-tests |
| 63 | + uses: ./.github/workflows/docker.yml |
| 64 | + with: |
| 65 | + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} |
| 66 | + secrets: inherit |
| 67 | + |
| 68 | + check-deps: |
| 69 | + name: Run Dependency Checks |
| 70 | + uses: ./.github/workflows/unused.yml |
| 71 | + with: |
| 72 | + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} |
| 73 | + secrets: inherit |
| 74 | + |
| 75 | + all-passed: |
| 76 | + name: Check Build Status |
| 77 | + runs-on: ubuntu-latest |
| 78 | + needs: |
| 79 | + - lint-commits |
| 80 | + - code-style |
| 81 | + - compat-check |
| 82 | + - type-check |
| 83 | + - run-tests |
| 84 | + - code-inspection |
| 85 | + - build-docker |
| 86 | + - check-deps |
| 87 | + steps: |
| 88 | + - name: Harden runner |
| 89 | + uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 |
| 90 | + with: |
| 91 | + egress-policy: audit |
| 92 | + |
| 93 | + - name: Report Success |
| 94 | + run: echo "All required checks passed successfully." |
0 commit comments