Skip to content

Commit b6b17af

Browse files
authored
Merge pull request #836 from kiwiupover/restore-legacy-tests
Restore the legacy tests
2 parents 0d11ef2 + d30117d commit b6b17af

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

.github/workflows/ci.yml

+32-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Yarn Install
6767
run: yarn install --ignore-engines --frozen-lockfile
6868
- name: Integration Tests
69-
run: yarn workspace integration-tests test
69+
run: yarn workspace integration-tests test
7070

7171
test-packages:
7272
name: Test Packages
@@ -90,3 +90,34 @@ jobs:
9090
run: yarn workspace basic-app test:mocha
9191
- name: Custom App
9292
run: yarn workspace custom-fastboot-app test:mocha
93+
94+
test-legacy-mocha:
95+
name: Legacy Mocha Tests - ${{ matrix.node-version }}
96+
runs-on: ubuntu-latest
97+
98+
strategy:
99+
fail-fast: false
100+
matrix:
101+
node-version: ['14', '12', '10']
102+
103+
steps:
104+
- name: Checkout Code
105+
uses: actions/checkout@v2
106+
- name: Use Node.js ${{ matrix.node-version }}
107+
uses: volta-cli/action@v1
108+
with:
109+
node-version: ${{ matrix.node-version }}
110+
111+
# Remove test-packages folder so that we don't leak node_modules between apps
112+
- name: Remove test-packages
113+
run: |
114+
rm -rf test-packages
115+
- name: Yarn Install
116+
working-directory: ./packages/ember-cli-fastboot
117+
run: |
118+
yarn install --ignore-engines --frozen-lockfile
119+
- name: Run Mocha Tests
120+
working-directory: ./packages/ember-cli-fastboot
121+
run: |
122+
npm --version
123+
yarn test:mocha

packages/ember-cli-fastboot/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"body-parser": "^1.18.3",
4747
"broccoli-asset-rev": "^3.0.0",
4848
"broccoli-test-helper": "^1.5.0",
49+
"co": "4.6.0",
4950
"chai": "^4.1.2",
5051
"chai-fs": "^2.0.0",
5152
"chai-string": "^1.4.0",

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -5577,6 +5577,11 @@ clone@^2.0.0, clone@^2.1.2:
55775577
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
55785578
integrity sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=
55795579

5580+
co@4.6.0:
5581+
version "4.6.0"
5582+
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
5583+
integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=
5584+
55805585
code-point-at@^1.0.0:
55815586
version "1.1.0"
55825587
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"

0 commit comments

Comments
 (0)