@@ -654,7 +654,9 @@ jobs:
654654 yarn test:package
655655
656656 job_node_integration_tests :
657- name : Node (${{ matrix.node }}) Integration Tests
657+ name :
658+ Node (${{ matrix.node }})${{ (matrix.typescript && format(' (TS {0})', matrix.typescript)) || '' }} Integration
659+ Tests
658660 needs : [job_get_metadata, job_build]
659661 if : needs.job_get_metadata.outputs.changed_node == 'true' || github.event_name != 'pull_request'
660662 runs-on : ubuntu-20.04
@@ -663,6 +665,12 @@ jobs:
663665 fail-fast : false
664666 matrix :
665667 node : [10, 12, 14, 16, 18, 20]
668+ typescript :
669+ - false
670+ include :
671+ # Only check typescript for latest version (to streamline CI)
672+ - node : 20
673+ typescript : ' 3.8'
666674 steps :
667675 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
668676 uses : actions/checkout@v3
@@ -676,6 +684,11 @@ jobs:
676684 uses : ./.github/actions/restore-cache
677685 env :
678686 DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
687+
688+ - name : Overwrite typescript version
689+ if : matrix.typescript
690+ run : yarn add --dev --ignore-workspace-root-check typescript@${{ matrix.typescript }}
691+
679692 - name : Run integration tests
680693 env :
681694 NODE_VERSION : ${{ matrix.node }}
@@ -714,7 +727,7 @@ jobs:
714727 yarn test:integration:ci
715728
716729 job_e2e_tests :
717- name : E2E Tests (Shard ${{ matrix.shard }})
730+ name : E2E (Shard ${{ matrix.shard }}) Tests
718731 # We only run E2E tests for non-fork PRs because the E2E tests require secrets to work and they can't be accessed from forks
719732 # Dependabot PRs sadly also don't have access to secrets, so we skip them as well
720733 if :
@@ -727,6 +740,7 @@ jobs:
727740 fail-fast : false
728741 matrix :
729742 shard : [1, 2, 3]
743+
730744 steps :
731745 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
732746 uses : actions/checkout@v3
@@ -743,6 +757,7 @@ jobs:
743757 uses : ./.github/actions/restore-cache
744758 env :
745759 DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
760+
746761 - name : Get node version
747762 id : versions
748763 run : |
0 commit comments