|
19 | 19 | - cron: '0 6 * * 0' |
20 | 20 |
|
21 | 21 | jobs: |
22 | | - test-mocha: |
23 | | - name: Mocha Tests - ${{ matrix.node-version }} |
| 22 | + test-legacy-mocha: |
| 23 | + name: Legacy Mocha Tests - ${{ matrix.node-version }} |
24 | 24 | runs-on: ubuntu-latest |
25 | 25 |
|
26 | 26 | strategy: |
| 27 | + fail-fast: false |
27 | 28 | matrix: |
28 | | - node-version: [12.x, 10.x] |
| 29 | + node-version: ['10', '12'] |
29 | 30 |
|
30 | 31 | steps: |
31 | 32 | - name: Checkout Code |
32 | 33 | uses: actions/checkout@v2 |
33 | 34 | - name: Use Node.js ${{ matrix.node-version }} |
34 | | - uses: actions/setup-node@v1 |
| 35 | + uses: volta-cli/action@v1 |
35 | 36 | with: |
36 | 37 | node-version: ${{ matrix.node-version }} |
37 | | - - name: Install NPM version 4 |
| 38 | + |
| 39 | + # Remove test-packages folder so that we don't leak node_modules between apps |
| 40 | + - name: Remove test-packages |
38 | 41 | run: | |
39 | | - npm config set spin false |
40 | | - npm install -g npm@4 |
| 42 | + rm -rf test-packages |
41 | 43 | - name: Yarn Install |
42 | | - run: yarn install --ignore-engines |
| 44 | + working-directory: ./packages/ember-cli-fastboot |
| 45 | + run: | |
| 46 | + yarn install --ignore-engines --frozen-lockfile |
43 | 47 | - name: Run Mocha Tests |
44 | | - run: yarn workspace ember-cli-fastboot test:mocha |
| 48 | + working-directory: ./packages/ember-cli-fastboot |
| 49 | + run: | |
| 50 | + volta install npm@4 |
| 51 | + npm --version |
| 52 | + yarn test:mocha |
| 53 | +
|
45 | 54 |
|
46 | 55 | test-ember: |
47 | 56 | name: Ember Tests |
|
60 | 69 | with: |
61 | 70 | node-version: ${{ matrix.node-version }} |
62 | 71 | - name: Yarn Install |
63 | | - run: yarn install --ignore-engines |
| 72 | + run: yarn install --ignore-engines --frozen-lockfile |
64 | 73 | - name: Run Tests |
65 | 74 | run: yarn workspace ember-cli-fastboot test:ember |
66 | 75 |
|
| 76 | + |
| 77 | + test-packages: |
| 78 | + name: Test Packages |
| 79 | + runs-on: ${{ matrix.os }} |
| 80 | + |
| 81 | + strategy: |
| 82 | + matrix: |
| 83 | + node-version: [12.x, 10.x] |
| 84 | + os: [ubuntu-latest, windows-latest] |
| 85 | + |
| 86 | + steps: |
| 87 | + - name: Checkout Code |
| 88 | + uses: actions/checkout@v2 |
| 89 | + - name: Use Node.js ${{ matrix.node-version }} |
| 90 | + uses: actions/setup-node@v1 |
| 91 | + with: |
| 92 | + node-version: ${{ matrix.node-version }} |
| 93 | + - name: Yarn Install |
| 94 | + run: yarn install --ignore-engines --frozen-lockfile |
| 95 | + - name: Basic App |
| 96 | + run: yarn workspace basic-app test:mocha |
0 commit comments