|
7 | 7 | pull_request: |
8 | 8 |
|
9 | 9 | env: |
10 | | - NODE_VERSION: 12 |
| 10 | + NODE_VERSION: 14 |
11 | 11 | PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_number }} |
12 | 12 | PERCY_PARALLEL_TOTAL: 1 |
13 | 13 |
|
14 | 14 | jobs: |
15 | 15 | lint: |
16 | 16 | name: Lint files |
17 | 17 | runs-on: ubuntu-latest |
18 | | - timeout-minutes: 3 |
| 18 | + timeout-minutes: 5 |
19 | 19 | steps: |
20 | 20 | - name: Check out a copy of the repo |
21 | | - uses: actions/checkout@v2 |
| 21 | + uses: actions/checkout@v3 |
22 | 22 |
|
23 | | - - name: Use Node.js 14 |
24 | | - uses: volta-cli/action@v4 |
| 23 | + - name: Check lockfile version |
| 24 | + uses: mansona/npm-lockfile-version@v1 |
25 | 25 |
|
26 | | - - name: Get Yarn cache path |
27 | | - id: yarn-cache-dir-path |
28 | | - run: echo "::set-output name=dir::$(yarn cache dir)" |
29 | | - |
30 | | - - name: Cache Yarn cache and node_modules |
31 | | - id: cache-dependencies |
32 | | - uses: actions/cache@v2 |
| 26 | + - name: Use Node.js ${{ env.NODE_VERSION }} |
| 27 | + uses: actions/setup-node@v3 |
33 | 28 | with: |
34 | | - path: | |
35 | | - ${{ steps.yarn-cache-dir-path.outputs.dir }} |
36 | | - node_modules |
37 | | - key: ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/yarn.lock') }} |
38 | | - restore-keys: ${{ runner.os }}-${{ env.NODE_VERSION }}- |
| 29 | + cache: 'npm' |
| 30 | + node-version: ${{ env.NODE_VERSION }} |
| 31 | + |
| 32 | + - run: npm i -g npm@9 |
39 | 33 |
|
40 | 34 | - name: Install dependencies |
41 | | - run: yarn install --frozen-lockfile |
42 | | - if: steps.cache-dependencies.outputs.cache-hit != 'true' |
| 35 | + run: npm ci |
43 | 36 |
|
44 | 37 | - name: Lint |
45 | | - run: yarn lint |
| 38 | + run: npm run lint |
46 | 39 |
|
47 | 40 |
|
48 | 41 | test-app: |
49 | 42 | name: Test app |
50 | 43 | runs-on: ubuntu-latest |
51 | | - timeout-minutes: 7 |
| 44 | + timeout-minutes: 10 |
52 | 45 | steps: |
53 | 46 | - name: Check out a copy of the repo |
54 | | - uses: actions/checkout@v2 |
55 | | - |
56 | | - - name: Use Node.js 14 |
57 | | - uses: volta-cli/action@v4 |
| 47 | + uses: actions/checkout@v3 |
58 | 48 |
|
59 | | - - name: Get Yarn cache path |
60 | | - id: yarn-cache-dir-path |
61 | | - run: echo "::set-output name=dir::$(yarn cache dir)" |
62 | | - |
63 | | - - name: Cache Yarn cache and node_modules |
64 | | - id: cache-dependencies |
65 | | - uses: actions/cache@v2 |
| 49 | + - name: Use Node.js ${{ env.NODE_VERSION }} |
| 50 | + uses: actions/setup-node@v3 |
66 | 51 | with: |
67 | | - path: | |
68 | | - ${{ steps.yarn-cache-dir-path.outputs.dir }} |
69 | | - node_modules |
70 | | - key: ${{ runner.os }}-14-${{ hashFiles('**/yarn.lock') }} |
71 | | - restore-keys: ${{ runner.os }}-14- |
| 52 | + cache: 'npm' |
| 53 | + node-version: ${{ env.NODE_VERSION }} |
| 54 | + |
| 55 | + - run: npm i -g npm@9 |
72 | 56 |
|
73 | 57 | - name: Install dependencies |
74 | | - run: yarn install --frozen-lockfile |
75 | | - if: steps.cache-dependencies.outputs.cache-hit != 'true' |
| 58 | + run: npm ci |
76 | 59 |
|
77 | 60 | - name: Test |
78 | 61 | env: |
79 | 62 | PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }} |
80 | 63 | PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }} |
81 | 64 | PERCY_TOKEN: 5ad6687f6b1ad3dec2b964f94d3d59ff3880baccf1492c0663e85c1ce79c1a52 |
82 | | - run: yarn run percy exec -- yarn test:ember |
| 65 | + run: npx percy exec -- npm run test:ember |
0 commit comments