Skip to content

Commit f98bcdb

Browse files
committed
ci: Add ember canary tests
1 parent 21ab26b commit f98bcdb

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

.github/workflows/canary.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
job_canary_test:
21-
name: Run Canary Tests
21+
name: Canary Tests
2222
runs-on: ubuntu-20.04
2323
timeout-minutes: 30
2424
steps:
@@ -55,3 +55,41 @@ jobs:
5555
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
5656
with:
5757
filename: .github/CANARY_FAILURE_TEMPLATE.md
58+
59+
job_ember_canary_test:
60+
name: Ember Canary Tests
61+
runs-on: ubuntu-20.04
62+
timeout-minutes: 30
63+
strategy:
64+
fail-fast: false
65+
matrix:
66+
scenario: [ember-release, embroider-optimized, ember-4.0]
67+
steps:
68+
- name: 'Check out current commit'
69+
uses: actions/checkout@v3
70+
with:
71+
ref: ${{ env.HEAD_COMMIT }}
72+
- name: Set up Node
73+
uses: volta-cli/action@v4
74+
75+
- name: Install dependencies
76+
run: yarn install --ignore-engines --frozen-lockfile
77+
78+
- name: Build dependencies
79+
run: |
80+
yarn lerna run build:types --scope=@sentry/ember --include-dependencies
81+
yarn lerna run build:transpile --scope=@sentry/ember --include-dependencies
82+
83+
- name: Run Ember tests
84+
run: |
85+
cd packages/ember
86+
yarn ember try:one ${{ matrix.scenario }} --skip-cleanup=true
87+
88+
- name: Create Issue
89+
if: failure()
90+
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
94+
with:
95+
filename: .github/CANARY_FAILURE_TEMPLATE.md

packages/ember/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@
1717
"test": "tests"
1818
},
1919
"scripts": {
20-
"build:uncached": "ember build --environment=production",
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",
2123
"build:tarball": "ember ts:precompile && npm pack && ember ts:clean",
22-
"clean": "yarn rimraf sentry-ember-*.tgz",
24+
"clean": "yarn rimraf sentry-ember-*.tgz dist tmp build .node_modules.ember-try package.json.ember-try",
2325
"lint": "run-p lint:js lint:hbs lint:ts",
2426
"lint:hbs": "ember-template-lint .",
2527
"lint:js": "eslint . --cache --cache-location '../../eslintcache/'",
2628
"lint:ts": "tsc",
2729
"start": "ember serve",
28-
"test": "ember test",
30+
"test": "ember test --path=build",
31+
"test:uncached": "ember test",
2932
"test:all": "ember try:each"
3033
},
3134
"dependencies": {

0 commit comments

Comments
 (0)