| 1 | name: Three-platform checks and test packages |
| 2 | on: |
| 3 | push: |
| 4 | branches: ['**', '!codex/release/**'] |
| 5 | pull_request: |
| 6 | workflow_dispatch: |
| 7 | permissions: |
| 8 | contents: read |
| 9 | concurrency: |
| 10 | group: cage-ci-${{ github.event.pull_request.number || github.ref }} |
| 11 | cancel-in-progress: true |
| 12 | jobs: |
| 13 | workflow-checks: |
| 14 | runs-on: ubuntu-24.04 |
| 15 | timeout-minutes: 15 |
| 16 | steps: |
| 17 | - uses: actions/checkout@v4 |
| 18 | with: |
| 19 | persist-credentials: false |
| 20 | - uses: actions/setup-node@v4 |
| 21 | with: |
| 22 | node-version: 24 |
| 23 | - uses: actions/setup-go@v5 |
| 24 | with: |
| 25 | go-version-file: go.mod |
| 26 | - uses: actions/setup-java@v4 |
| 27 | with: |
| 28 | distribution: temurin |
| 29 | java-version: '21' |
| 30 | - name: Version consistency and release safety tests |
| 31 | run: | |
| 32 | node scripts/check-repository-files.mjs |
| 33 | node scripts/check-version.mjs |
| 34 | node --test scripts/release-version.test.mjs scripts/release-control.test.mjs scripts/prepare-release-assets.test.mjs scripts/esigner.test.mjs |
| 35 | pwsh -NoProfile -File scripts/test-windows-signing.ps1 |
| 36 | - name: Validate workflow syntax |
| 37 | run: go run github.com/rhysd/actionlint/cmd/[email protected] -color |
| 38 | macos: |
| 39 | needs: workflow-checks |
| 40 | uses: ./.github/workflows/macos-build.yml |
| 41 | with: |
| 42 | ref: ${{ github.sha }} |
| 43 | release: false |
| 44 | artifact_name: cage-macos-arm64-test |
| 45 | windows: |
| 46 | needs: workflow-checks |
| 47 | uses: ./.github/workflows/windows-build.yml |
| 48 | with: |
| 49 | ref: ${{ github.sha }} |
| 50 | release: false |
| 51 | artifact_name: cage-windows-amd64-test |
| 52 | linux: |
| 53 | needs: workflow-checks |
| 54 | uses: ./.github/workflows/linux-build.yml |
| 55 | with: |
| 56 | ref: ${{ github.sha }} |
| 57 | release: false |
| 58 | artifact_name: cage-linux-amd64-test |