|
1 |
| -name: Node.js CI |
| 1 | +name: CI |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
|
7 | 7 |
|
8 | 8 | jobs:
|
9 | 9 | install:
|
10 |
| - name: Checkout and Install |
| 10 | + name: Install packages |
11 | 11 | runs-on: ubuntu-latest
|
12 | 12 |
|
13 | 13 | steps:
|
14 | 14 | - name: Checkout
|
15 | 15 | uses: actions/checkout@v3
|
16 |
| - - name: PNPM Install With Cache |
17 |
| - uses: ./.github/actions/pnpm-install-with-cache |
| 16 | + - name: Setup pnpm |
| 17 | + uses: ./.github/actions/pnpm |
18 | 18 |
|
19 | 19 | lint_website:
|
20 |
| - name: Run linter in website |
| 20 | + name: Run ESLint in website |
21 | 21 | needs: install
|
22 | 22 | runs-on: ubuntu-latest
|
23 | 23 |
|
24 | 24 | steps:
|
25 | 25 | - name: Checkout
|
26 | 26 | uses: actions/checkout@v3
|
27 |
| - - name: PNPM Install With Cache |
28 |
| - uses: ./.github/actions/pnpm-install-with-cache |
| 27 | + - name: Setup pnpm |
| 28 | + uses: ./.github/actions/pnpm |
29 | 29 |
|
30 |
| - - name: Run lint check |
| 30 | + - name: ESLint check |
31 | 31 | run: pnpm lint
|
32 | 32 | working-directory: website
|
33 | 33 |
|
34 | 34 | format_website:
|
35 |
| - name: Run formatter in website |
| 35 | + name: Run Prettier in website |
36 | 36 | needs: install
|
37 | 37 | runs-on: ubuntu-latest
|
38 | 38 |
|
39 | 39 | steps:
|
40 | 40 | - name: Checkout
|
41 | 41 | uses: actions/checkout@v3
|
42 |
| - - name: PNPM Install With Cache |
43 |
| - uses: ./.github/actions/pnpm-install-with-cache |
| 42 | + - name: Setup pnpm |
| 43 | + uses: ./.github/actions/pnpm |
44 | 44 |
|
45 |
| - - name: Run format check |
| 45 | + - name: Prettier check |
46 | 46 | run: pnpm format.check
|
47 | 47 | working-directory: website
|
48 | 48 |
|
49 | 49 | lint_library:
|
50 |
| - name: Run linter in library |
| 50 | + name: Run ESLint in library |
51 | 51 | needs: install
|
52 | 52 | runs-on: ubuntu-latest
|
53 | 53 |
|
54 | 54 | steps:
|
55 | 55 | - name: Checkout
|
56 | 56 | uses: actions/checkout@v3
|
57 |
| - - name: PNPM Install With Cache |
58 |
| - uses: ./.github/actions/pnpm-install-with-cache |
| 57 | + - name: Setup pnpm |
| 58 | + uses: ./.github/actions/pnpm |
59 | 59 |
|
60 |
| - - name: Run lint check |
| 60 | + - name: ESLint check |
61 | 61 | run: pnpm lint
|
62 | 62 | working-directory: library
|
63 | 63 |
|
64 | 64 | format_library:
|
65 |
| - name: Run formatter in library |
| 65 | + name: Run Prettier in library |
66 | 66 | needs: install
|
67 | 67 | runs-on: ubuntu-latest
|
68 | 68 |
|
69 | 69 | steps:
|
70 | 70 | - name: Checkout
|
71 | 71 | uses: actions/checkout@v3
|
72 |
| - - name: PNPM Install With Cache |
73 |
| - uses: ./.github/actions/pnpm-install-with-cache |
| 72 | + - name: Setup pnpm |
| 73 | + uses: ./.github/actions/pnpm |
74 | 74 |
|
75 |
| - - name: Run format check |
| 75 | + - name: Prettier check |
76 | 76 | run: pnpm format.check
|
77 | 77 | working-directory: library
|
78 | 78 |
|
|
84 | 84 | steps:
|
85 | 85 | - name: Checkout
|
86 | 86 | uses: actions/checkout@v3
|
87 |
| - - name: PNPM Install With Cache |
88 |
| - uses: ./.github/actions/pnpm-install-with-cache |
| 87 | + - name: Setup pnpm |
| 88 | + uses: ./.github/actions/pnpm |
89 | 89 |
|
90 |
| - - name: Run Vitest |
| 90 | + - name: Vitest tests |
91 | 91 | run: pnpm test
|
92 | 92 | working-directory: library
|
0 commit comments