@@ -256,8 +256,6 @@ jobs:
256256 NODE_VERSION : ${{ matrix.node }}
257257 run : |
258258 [[ $NODE_VERSION == 8 ]] && yarn add --dev --ignore-engines --ignore-scripts --ignore-workspace-root-check [email protected] 259- # TODO remove this when we switch to sucrase
260- yarn ts-node scripts/sucrase-test-hack.ts
261259 yarn test-ci
262260 - name : Compute test coverage
263261 uses : codecov/codecov-action@v1
@@ -494,278 +492,3 @@ jobs:
494492 run : |
495493 cd packages/node-integration-tests
496494 yarn test
497-
498- job_unit_test_sucrase :
499- name : Sucrase Test (Node ${{ matrix.node }})
500- needs : job_build
501- continue-on-error : true
502- timeout-minutes : 30
503- runs-on : ubuntu-latest
504- strategy :
505- matrix :
506- node : [8, 10, 12, 14, 16]
507- steps :
508- - name : Check out current commit (${{ env.HEAD_COMMIT }})
509- uses : actions/checkout@v2
510- with :
511- ref : ${{ env.HEAD_COMMIT }}
512- - name : Set up Node
513- uses : actions/setup-node@v1
514- with :
515- node-version : ${{ matrix.node }}
516- - name : Check dependency cache
517- uses : actions/cache@v2
518- with :
519- path : ${{ env.CACHED_DEPENDENCY_PATHS }}
520- key : ${{ needs.job_build.outputs.dependency_cache_key }}
521- - name : Check build cache
522- uses : actions/cache@v2
523- with :
524- path : ${{ env.CACHED_BUILD_PATHS }}
525- key : ${{ env.BUILD_CACHE_KEY }}
526- - name : Run tests
527- env :
528- NODE_VERSION : ${{ matrix.node }}
529- SUCRASE : true
530- run : |
531- [[ $NODE_VERSION == 8 ]] && yarn add --dev --ignore-engines --ignore-scripts --ignore-workspace-root-check [email protected] [email protected] @rollup/[email protected] [email protected] [email protected] 532- yarn ts-node scripts/sucrase-test-hack.ts
533- yarn test-ci
534- - name : Compute test coverage
535- uses : codecov/codecov-action@v1
536-
537- job_nextjs_integration_test_sucrase :
538- name : Sucrase Test @sentry/nextjs on (Node ${{ matrix.node }})
539- needs : job_build
540- continue-on-error : true
541- timeout-minutes : 30
542- runs-on : ubuntu-latest
543- strategy :
544- matrix :
545- node : [10, 12, 14, 16]
546- steps :
547- - name : Check out current commit (${{ env.HEAD_COMMIT }})
548- uses : actions/checkout@v2
549- with :
550- ref : ${{ env.HEAD_COMMIT }}
551- - name : Set up Node
552- uses : actions/setup-node@v1
553- with :
554- node-version : ${{ matrix.node }}
555- - name : Check dependency cache
556- uses : actions/cache@v2
557- with :
558- path : ${{ env.CACHED_DEPENDENCY_PATHS }}
559- key : ${{ needs.job_build.outputs.dependency_cache_key }}
560- - name : Check build cache
561- uses : actions/cache@v2
562- with :
563- path : ${{ env.CACHED_BUILD_PATHS }}
564- key : ${{ env.BUILD_CACHE_KEY }}
565- - name : Run tests
566- env :
567- NODE_VERSION : ${{ matrix.node }}
568- run : |
569- yarn ts-node scripts/sucrase-test-hack.ts
570- cd packages/nextjs
571- yarn test:integration
572-
573- # Ember tests are separate from the rest because they are the slowest part of the test suite, and making them a
574- # separate job allows them to run in parallel with the other tests.
575- job_ember_tests_sucrase :
576- name : Sucrase Test @sentry/ember
577- needs : job_build
578- continue-on-error : true
579- timeout-minutes : 30
580- runs-on : ubuntu-latest
581- steps :
582- - name : Check out current commit (${{ env.HEAD_COMMIT }})
583- uses : actions/checkout@v2
584- with :
585- ref : ${{ env.HEAD_COMMIT }}
586- # TODO: removing `fetch-depth` below seems to have no effect, and the commit which added it had no description,
587- # so it's not clear why it's necessary. That said, right now ember tests are xfail, so it's a little hard to
588- # tell if it's safe to remove. Once ember tests are fixed, let's try again with it turned off, and if all goes
589- # well, we can pull it out.
590- fetch-depth : 0
591- - name : Set up Node
592- uses : actions/setup-node@v1
593- with :
594- # The only danger with Ember in terms of Node versions is that the build tool, ember-cli, won't work if Node
595- # is too old. Since Oct 2019, Node 10 has been the oldest version supported by ember-cli, so test against
596- # that. If it passes, newer versions of Node should also be fine. This saves us from having to run the Ember
597- # tests in our Node matrix above.
598- node-version : ' 10'
599- - name : Check dependency cache
600- uses : actions/cache@v2
601- with :
602- path : ${{ env.CACHED_DEPENDENCY_PATHS }}
603- key : ${{ needs.job_build.outputs.dependency_cache_key }}
604- - name : Check build cache
605- uses : actions/cache@v2
606- with :
607- path : ${{ env.CACHED_BUILD_PATHS }}
608- key : ${{ env.BUILD_CACHE_KEY }}
609- - name : Run Ember tests
610- run : |
611- yarn ts-node scripts/sucrase-test-hack.ts
612- yarn test --scope=@sentry/ember
613- - name : Compute test coverage
614- uses : codecov/codecov-action@v1
615-
616- job_browser_playwright_tests_sucrase :
617- name : Sucrase Playwright - ${{ (matrix.tracing_only && 'Browser + Tracing') || 'Browser' }} (${{ matrix.bundle }})
618- needs : job_build
619- runs-on : ubuntu-latest
620- strategy :
621- matrix :
622- bundle :
623- - esm
624- - cjs
625- tracing_only :
626- - true
627- - false
628- exclude :
629- # `tracing_only` only makes a difference for bundles - tests of the esm and cjs builds always include the
630- # tracing tests
631- - bundle : esm
632- tracing_only : false
633- - bundle : cjs
634- tracing_only : false
635- steps :
636- - name : Check out current commit (${{ env.HEAD_COMMIT }})
637- uses : actions/checkout@v2
638- with :
639- ref : ${{ env.HEAD_COMMIT }}
640- - name : Set up Node
641- uses : actions/setup-node@v1
642- with :
643- node-version : ' 16'
644- - name : Check dependency cache
645- uses : actions/cache@v2
646- with :
647- path : ${{ env.CACHED_DEPENDENCY_PATHS }}
648- key : ${{ needs.job_build.outputs.dependency_cache_key }}
649- - name : Check build cache
650- uses : actions/cache@v2
651- with :
652- path : ${{ env.CACHED_BUILD_PATHS }}
653- key : ${{ env.BUILD_CACHE_KEY }}
654- - name : Run Playwright tests
655- env :
656- PW_BUNDLE : ${{ matrix.bundle }}
657- PW_TRACING_ONLY : ${{ matrix.tracing_only }}
658- run : |
659- yarn ts-node scripts/sucrase-test-hack.ts
660- cd packages/integration-tests
661- yarn run playwright install-deps webkit
662- yarn test:ci
663-
664- job_browser_integration_tests_sucrase :
665- name : Sucrase Old Browser Integration Tests (${{ matrix.browser }})
666- needs : job_build
667- runs-on : ubuntu-latest
668- timeout-minutes : 10
669- continue-on-error : true
670- strategy :
671- matrix :
672- browser :
673- - ChromeHeadless
674- - FirefoxHeadless
675- - WebkitHeadless
676- steps :
677- - name : Check out current commit (${{ env.HEAD_COMMIT }})
678- uses : actions/checkout@v2
679- with :
680- ref : ${{ env.HEAD_COMMIT }}
681- - name : Set up Node
682- uses : actions/setup-node@v1
683- - name : Check dependency cache
684- uses : actions/cache@v2
685- with :
686- path : ${{ env.CACHED_DEPENDENCY_PATHS }}
687- key : ${{ needs.job_build.outputs.dependency_cache_key }}
688- - name : Check build cache
689- uses : actions/cache@v2
690- with :
691- path : ${{ env.CACHED_BUILD_PATHS }}
692- key : ${{ env.BUILD_CACHE_KEY }}
693- - name : Run integration tests
694- env :
695- KARMA_BROWSER : ${{ matrix.browser }}
696- run : |
697- yarn ts-node scripts/sucrase-test-hack.ts
698- cd packages/browser
699- [[ $KARMA_BROWSER == WebkitHeadless ]] && yarn run playwright install-deps webkit
700- yarn test:integration
701-
702- job_browser_build_tests_sucrase :
703- name : Sucrase Browser Build Tests
704- needs : job_build
705- runs-on : ubuntu-latest
706- timeout-minutes : 5
707- continue-on-error : true
708- steps :
709- - name : Check out current commit (${ env.HEAD_COMMIT }})
710- uses : actions/checkout@v2
711- with :
712- ref : ${{ env.HEAD_COMMIT }}
713- - name : Set up Node
714- uses : actions/setup-node@v1
715- with :
716- node-version : ' 16'
717- - name : Check dependency cache
718- uses : actions/cache@v2
719- with :
720- path : ${{ env.CACHED_DEPENDENCY_PATHS }}
721- key : ${{ needs.job_build.outputs.dependency_cache_key }}
722- - name : Check build cache
723- uses : actions/cache@v2
724- with :
725- path : ${{ env.CACHED_BUILD_PATHS }}
726- key : ${{ env.BUILD_CACHE_KEY }}
727- - name : Run browser build tests
728- run : |
729- yarn ts-node scripts/sucrase-test-hack.ts
730- cd packages/browser
731- yarn test:package
732- - name : Run utils build tests
733- run : |
734- cd packages/utils
735- yarn test:package
736-
737- job_node_integration_tests_sucrase :
738- name : Sucrase Node SDK Integration Tests (${{ matrix.node }})
739- needs : job_build
740- runs-on : ubuntu-latest
741- timeout-minutes : 10
742- continue-on-error : true
743- strategy :
744- matrix :
745- node : [10, 12, 14, 16]
746- steps :
747- - name : Check out current commit (${{ github.sha }})
748- uses : actions/checkout@v2
749- with :
750- ref : ${{ env.HEAD_COMMIT }}
751- - name : Set up Node
752- uses : actions/setup-node@v1
753- with :
754- node-version : ${{ matrix.node }}
755- - name : Check dependency cache
756- uses : actions/cache@v2
757- with :
758- path : ${{ env.CACHED_DEPENDENCY_PATHS }}
759- key : ${{ needs.job_build.outputs.dependency_cache_key }}
760- - name : Check build cache
761- uses : actions/cache@v2
762- with :
763- path : ${{ env.CACHED_BUILD_PATHS }}
764- key : ${{ env.BUILD_CACHE_KEY }}
765- - name : Run integration tests
766- env :
767- NODE_VERSION : ${{ matrix.node }}
768- run : |
769- yarn ts-node scripts/sucrase-test-hack.ts
770- cd packages/node-integration-tests
771- yarn test
0 commit comments