Repository navigation
attest: TypeScript 7 support; develop on TypeScript 7.1; release arktype 2.2.8 #997
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: pr | |
| on: | |
| pull_request: | |
| branches: [main] | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| core: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup repo | |
| uses: ./.github/actions/setup | |
| - name: prChecks | |
| run: pnpm prChecks | |
| compatibility: | |
| needs: core | |
| timeout-minutes: 20 | |
| strategy: | |
| matrix: | |
| node: [lts/*] | |
| os: [windows-latest, macos-latest] | |
| include: | |
| - os: ubuntu-latest | |
| node: lts/-1 | |
| - os: ubuntu-latest | |
| node: latest | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup repo | |
| uses: ./.github/actions/setup | |
| with: | |
| node: ${{ matrix.node }} | |
| # To test node and OS versions, we don't care about rechecking types | |
| # so just check runtime behavior | |
| - name: Test | |
| run: pnpm testRepo | |
| tsVersionTasks: | |
| needs: core | |
| runs-on: ubuntu-latest | |
| outputs: | |
| tasks: ${{ steps.list.outputs.tasks }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - id: list | |
| run: echo "tasks=$(node ark/repo/testTsVersions.ts --list)" >> "$GITHUB_OUTPUT" | |
| typescript: | |
| needs: tsVersionTasks | |
| timeout-minutes: 20 | |
| strategy: | |
| matrix: | |
| task: ${{ fromJSON(needs.tsVersionTasks.outputs.tasks) }} | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup repo | |
| uses: ./.github/actions/setup | |
| - name: Test ${{ matrix.task }} | |
| run: pnpm testTsVersions ${{ matrix.task }} | |
| prChecks: | |
| needs: [compatibility, typescript] | |
| timeout-minutes: 1 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: echo All checks succeeded! ⛵ |