|
11 | 11 |
|
12 | 12 | env:
|
13 | 13 | NODE_VERSION: 10
|
| 14 | + PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_number }} |
| 15 | + PERCY_PARALLEL_TOTAL: 1 |
14 | 16 |
|
15 | 17 | jobs:
|
16 | 18 | lint:
|
|
42 | 44 |
|
43 | 45 | - name: Lint
|
44 | 46 | run: npm run lint
|
| 47 | + |
| 48 | + |
| 49 | + test-addon-floating: |
| 50 | + name: Test addon (floating dependencies) |
| 51 | + runs-on: ubuntu-latest |
| 52 | + timeout-minutes: 5 |
| 53 | + steps: |
| 54 | + - name: Check out a copy of the repo |
| 55 | + uses: actions/checkout@v2 |
| 56 | + |
| 57 | + - name: Use Node.js ${{ env.NODE_VERSION }} |
| 58 | + uses: actions/setup-node@v2-beta |
| 59 | + with: |
| 60 | + node-version: ${{ env.NODE_VERSION }} |
| 61 | + |
| 62 | + - name: Install dependencies |
| 63 | + run: npm install --no-package-lock |
| 64 | + |
| 65 | + - name: Test |
| 66 | + run: npm run test:ember |
| 67 | + |
| 68 | + |
| 69 | + test-addon-locked: |
| 70 | + name: Test addon (locked dependencies) |
| 71 | + runs-on: ubuntu-latest |
| 72 | + timeout-minutes: 5 |
| 73 | + steps: |
| 74 | + - name: Check out a copy of the repo |
| 75 | + uses: actions/checkout@v2 |
| 76 | + |
| 77 | + - name: Use Node.js ${{ env.NODE_VERSION }} |
| 78 | + uses: actions/setup-node@v2-beta |
| 79 | + with: |
| 80 | + node-version: ${{ env.NODE_VERSION }} |
| 81 | + |
| 82 | + - name: Cache npm cache and node_modules |
| 83 | + id: cache-dependencies |
| 84 | + uses: actions/cache@v2 |
| 85 | + with: |
| 86 | + path: | |
| 87 | + ~/.npm |
| 88 | + node_modules |
| 89 | + key: ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} |
| 90 | + restore-keys: ${{ runner.os }}-${{ env.NODE_VERSION }}- |
| 91 | + |
| 92 | + - name: Install dependencies |
| 93 | + run: npm install |
| 94 | + if: steps.cache-dependencies.outputs.cache-hit != 'true' |
| 95 | + |
| 96 | + - name: Test |
| 97 | + |
| 98 | + with: |
| 99 | + custom-command: npm run test:ember |
| 100 | + env: |
| 101 | + PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }} |
| 102 | + PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }} |
| 103 | + PERCY_TOKEN: ee0a9d5c1122d6a21852edf19b5b309aaec18077fb3900c98995c90bc48ed240 |
0 commit comments