@@ -654,7 +654,9 @@ jobs:
654
654
yarn test:package
655
655
656
656
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
658
660
needs : [job_get_metadata, job_build]
659
661
if : needs.job_get_metadata.outputs.changed_node == 'true' || github.event_name != 'pull_request'
660
662
runs-on : ubuntu-20.04
@@ -663,6 +665,12 @@ jobs:
663
665
fail-fast : false
664
666
matrix :
665
667
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'
666
674
steps :
667
675
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
668
676
uses : actions/checkout@v3
@@ -676,6 +684,11 @@ jobs:
676
684
uses : ./.github/actions/restore-cache
677
685
env :
678
686
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
+
679
692
- name : Run integration tests
680
693
env :
681
694
NODE_VERSION : ${{ matrix.node }}
@@ -714,7 +727,7 @@ jobs:
714
727
yarn test:integration:ci
715
728
716
729
job_e2e_tests :
717
- name : E2E Tests (Shard ${{ matrix.shard }})
730
+ name : E2E (Shard ${{ matrix.shard }}) Tests
718
731
# 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
719
732
# Dependabot PRs sadly also don't have access to secrets, so we skip them as well
720
733
if :
@@ -727,6 +740,7 @@ jobs:
727
740
fail-fast : false
728
741
matrix :
729
742
shard : [1, 2, 3]
743
+
730
744
steps :
731
745
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
732
746
uses : actions/checkout@v3
@@ -743,6 +757,7 @@ jobs:
743
757
uses : ./.github/actions/restore-cache
744
758
env :
745
759
DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
760
+
746
761
- name : Get node version
747
762
id : versions
748
763
run : |
0 commit comments