Skip to content

Commit 542cfcc

Browse files
committed
ci(ember): Only run regular ember tests
They are run in the browser unit tests
1 parent f98bcdb commit 542cfcc

File tree

2 files changed

+1
-50
lines changed

2 files changed

+1
-50
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -492,50 +492,6 @@ jobs:
492492
cd packages/nextjs
493493
yarn test:integration
494494
495-
# Ember tests are separate from the rest because they are the slowest part of the test suite, and making them a
496-
# separate job allows them to run in parallel with the other tests.
497-
job_ember_tests:
498-
name: Ember (${{ matrix.scenario }}) Tests
499-
needs: [job_get_metadata, job_build]
500-
if: needs.job_get_metadata.outputs.changed_ember == 'true' || github.event_name != 'pull_request'
501-
timeout-minutes: 10
502-
runs-on: ubuntu-20.04
503-
strategy:
504-
fail-fast: false
505-
matrix:
506-
scenario: [ember-release, embroider-optimized, ember-4.0]
507-
steps:
508-
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
509-
uses: actions/checkout@v3
510-
with:
511-
ref: ${{ env.HEAD_COMMIT }}
512-
# TODO: removing `fetch-depth` below seems to have no effect, and the commit which added it had no description,
513-
# so it's not clear why it's necessary. That said, right now ember tests are xfail, so it's a little hard to
514-
# tell if it's safe to remove. Once ember tests are fixed, let's try again with it turned off, and if all goes
515-
# well, we can pull it out.
516-
fetch-depth: 0
517-
- name: Set up Node
518-
uses: actions/setup-node@v3
519-
with:
520-
# We support node 14+. If that works, we can safely assume that newer versions will also work.
521-
node-version: '14'
522-
- name: Check dependency cache
523-
uses: actions/cache@v3
524-
with:
525-
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
526-
key: ${{ needs.job_build.outputs.dependency_cache_key }}
527-
- name: Check build cache
528-
uses: actions/cache@v3
529-
with:
530-
path: ${{ env.CACHED_BUILD_PATHS }}
531-
key: ${{ env.BUILD_CACHE_KEY }}
532-
- name: Run Ember tests
533-
run: |
534-
cd packages/ember
535-
yarn ember try:one ${{ matrix.scenario }} --skip-cleanup=true
536-
- name: Compute test coverage
537-
uses: codecov/codecov-action@v3
538-
539495
job_browser_playwright_tests:
540496
name: Playwright (${{ matrix.bundle }})${{ (matrix.tracing_only && ' tracing only') || '' }} Tests
541497
needs: [job_get_metadata, job_build]
@@ -804,7 +760,6 @@ jobs:
804760
job_browser_playwright_tests,
805761
job_browser_integration_tests,
806762
job_remix_integration_tests,
807-
job_ember_tests,
808763
]
809764
# Always run this, even if a dependent job failed
810765
if: always()

packages/ember/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,14 @@
1717
"test": "tests"
1818
},
1919
"scripts": {
20-
"build": "ember build --environment=test --output-path=build",
21-
"build:dev": "yarn build",
22-
"build:dev:watch": "ember build --environment=test --output-path=build --watch",
2320
"build:tarball": "ember ts:precompile && npm pack && ember ts:clean",
2421
"clean": "yarn rimraf sentry-ember-*.tgz dist tmp build .node_modules.ember-try package.json.ember-try",
2522
"lint": "run-p lint:js lint:hbs lint:ts",
2623
"lint:hbs": "ember-template-lint .",
2724
"lint:js": "eslint . --cache --cache-location '../../eslintcache/'",
2825
"lint:ts": "tsc",
2926
"start": "ember serve",
30-
"test": "ember test --path=build",
31-
"test:uncached": "ember test",
27+
"test": "ember test",
3228
"test:all": "ember try:each"
3329
},
3430
"dependencies": {

0 commit comments

Comments
 (0)