|
9 | 9 | jobs:
|
10 | 10 | test:
|
11 | 11 | name: Test packages
|
12 |
| - runs-on: ubuntu-20.04 |
| 12 | + runs-on: ubuntu-22.04 |
13 | 13 |
|
14 | 14 | steps:
|
15 |
| - - uses: actions/checkout@v2 |
| 15 | + - uses: actions/checkout@v3 |
16 | 16 |
|
17 |
| - |
| 17 | + - name: Set Node.js 18.x |
| 18 | + uses: actions/setup-node@v3 |
18 | 19 | with:
|
19 |
| - version: 6.22.2 |
| 20 | + node-version: 18.x |
| 21 | + cache: 'yarn' |
20 | 22 |
|
21 |
| - - name: Use Node.js 14.x |
22 |
| - uses: actions/setup-node@v2 |
23 |
| - with: |
24 |
| - node-version: 14.x |
25 |
| - cache: 'pnpm' |
| 23 | + - name: Enable corepack |
| 24 | + run: corepack enable |
26 | 25 |
|
27 | 26 | - name: Install Dependencies
|
28 |
| - run: pnpm install |
| 27 | + run: yarn install |
29 | 28 |
|
30 | 29 | - name: Check lint
|
31 |
| - run: pnpm run test:lint |
| 30 | + run: yarn run test:lint |
32 | 31 |
|
33 | 32 | - name: Compile packages
|
34 |
| - run: pnpm run compile |
| 33 | + run: yarn run compile |
35 | 34 |
|
36 | 35 | - name: Docker compose
|
37 | 36 | run: docker-compose up -d
|
38 | 37 |
|
39 | 38 | - name: Run tests
|
40 |
| - run: pnpm run coverage |
| 39 | + run: yarn run coverage |
41 | 40 |
|
42 | 41 | - name: Upload coverage
|
43 |
| - uses: codecov/codecov-action@v1 |
| 42 | + uses: codecov/codecov-action@v3 |
44 | 43 |
|
45 | 44 | test-examples:
|
46 | 45 | name: Test examples
|
47 |
| - runs-on: ubuntu-20.04 |
| 46 | + runs-on: ubuntu-22.04 |
48 | 47 |
|
49 | 48 | steps:
|
50 |
| - - uses: actions/checkout@v2 |
| 49 | + - uses: actions/checkout@v3 |
51 | 50 |
|
52 |
| - |
| 51 | + - name: Set Node.js 18.x |
| 52 | + uses: actions/setup-node@v3 |
53 | 53 | with:
|
54 |
| - version: 6.22.2 |
| 54 | + node-version: 18.x |
| 55 | + cache: 'yarn' |
55 | 56 |
|
56 |
| - - name: Use Node.js 14.x |
57 |
| - uses: actions/setup-node@v2 |
58 |
| - with: |
59 |
| - node-version: 14.x |
60 |
| - cache: 'pnpm' |
| 57 | + - name: Enable corepack |
| 58 | + run: corepack enable |
61 | 59 |
|
62 | 60 | - name: Install Dependencies
|
63 |
| - run: pnpm install |
| 61 | + run: yarn install |
64 | 62 |
|
65 | 63 | - name: Compile packages
|
66 |
| - run: pnpm run compile |
| 64 | + run: yarn run compile |
67 | 65 |
|
68 | 66 | - name: Test examples
|
69 |
| - run: pnpm run test:examples |
| 67 | + run: yarn run test:examples |
70 | 68 | env:
|
71 | 69 | REACT_APP_API_URL: http://localhost:3000
|
72 | 70 |
|
73 | 71 | test-documentation:
|
74 | 72 | name: Test documentation
|
75 |
| - runs-on: ubuntu-20.04 |
| 73 | + runs-on: ubuntu-22.04 |
76 | 74 |
|
77 | 75 | steps:
|
78 |
| - - uses: actions/checkout@v2 |
| 76 | + - uses: actions/checkout@v3 |
79 | 77 |
|
80 |
| - |
| 78 | + - name: Set Node.js 18.x |
| 79 | + uses: actions/setup-node@v3 |
81 | 80 | with:
|
82 |
| - version: 6.22.2 |
| 81 | + node-version: 18.x |
| 82 | + cache: 'yarn' |
83 | 83 |
|
84 |
| - - name: Use Node.js 14.x |
85 |
| - uses: actions/setup-node@v2 |
86 |
| - with: |
87 |
| - node-version: 14.x |
88 |
| - cache: 'pnpm' |
| 84 | + - name: Enable corepack |
| 85 | + run: corepack enable |
89 | 86 |
|
90 | 87 | - name: Install Dependencies
|
91 |
| - run: pnpm install |
| 88 | + run: yarn install |
92 | 89 |
|
93 | 90 | - name: Test documentation
|
94 |
| - run: | |
95 |
| - cd website |
96 |
| - pnpm run generate-api-docs |
97 |
| - pnpm run build |
| 91 | + run: yarn workspace accounts-js run build |
0 commit comments