|
1 | 1 | name: CI |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - main |
7 | | - pull_request: |
8 | | - branches: |
9 | | - - main |
10 | | - workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - main |
| 10 | + workflow_dispatch: |
11 | 11 |
|
12 | 12 | concurrency: |
13 | | - group: ${{ github.workflow }}-${{ github.ref }} |
14 | | - cancel-in-progress: true |
| 13 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 14 | + cancel-in-progress: true |
15 | 15 |
|
16 | 16 | jobs: |
17 | | - nextjs: |
18 | | - name: NextJS check and deploy |
19 | | - runs-on: ubuntu-latest |
20 | | - steps: |
21 | | - - name: Check out repository |
22 | | - uses: actions/checkout@v3 |
23 | | - |
24 | | - - name: Setup node |
25 | | - uses: actions/setup-node@v3 |
26 | | - with: |
27 | | - node-version: 18 |
28 | | - |
29 | | - - name: Install dependencies |
30 | | - run: cd NextJS && yarn install --frozen-lockfile |
31 | | - |
32 | | - - name: Run build |
33 | | - run: cd NextJS && yarn build |
34 | | - |
35 | | - |
36 | | - react: |
37 | | - name: React check and deploy |
38 | | - runs-on: ubuntu-latest |
39 | | - steps: |
40 | | - - name: Check out repository |
41 | | - uses: actions/checkout@v3 |
42 | | - |
43 | | - - name: Setup node |
44 | | - uses: actions/setup-node@v3 |
45 | | - with: |
46 | | - node-version: 18 |
47 | | - |
48 | | - - name: Install dependencies |
49 | | - run: cd React && yarn install --frozen-lockfile |
50 | | - |
51 | | - - name: Run build |
52 | | - env: |
53 | | - CI: false |
54 | | - run: cd React && yarn build |
55 | | - |
56 | | - vue: |
57 | | - name: VueJS check and deploy |
58 | | - runs-on: ubuntu-latest |
59 | | - steps: |
60 | | - - name: Check out repository |
61 | | - uses: actions/checkout@v3 |
62 | | - |
63 | | - - name: Setup node |
64 | | - uses: actions/setup-node@v3 |
65 | | - with: |
66 | | - node-version: 18 |
67 | | - |
68 | | - - name: Install dependencies |
69 | | - run: cd Vue && yarn install --frozen-lockfile |
70 | | - |
71 | | - - name: Run eslint |
72 | | - run: cd Vue && yarn lint |
73 | | - |
74 | | - - name: Run build |
75 | | - run: cd Vue && yarn build |
76 | | - |
77 | | - |
78 | | - svelte: |
79 | | - name: Svelte check and deploy |
80 | | - runs-on: ubuntu-latest |
81 | | - steps: |
82 | | - - name: Check out repository |
83 | | - uses: actions/checkout@v3 |
84 | | - |
85 | | - - name: Setup node |
86 | | - uses: actions/setup-node@v3 |
87 | | - with: |
88 | | - node-version: 18 |
89 | | - |
90 | | - - name: Install dependencies |
91 | | - run: cd Svelte && yarn install --frozen-lockfile |
92 | | - |
93 | | - - name: Run check |
94 | | - run: cd Svelte && yarn check |
95 | | - |
96 | | - - name: Run build |
97 | | - run: cd Svelte && yarn build |
| 17 | + nextjs: |
| 18 | + name: NextJS check and deploy |
| 19 | + runs-on: ubuntu-latest |
| 20 | + steps: |
| 21 | + - name: Check out repository |
| 22 | + uses: actions/checkout@v4 |
| 23 | + |
| 24 | + - name: Setup node |
| 25 | + uses: actions/setup-node@v4 |
| 26 | + with: |
| 27 | + node-version: 18 |
| 28 | + cache: npm |
| 29 | + cache-dependency-path: NextJS/package-lock.json |
| 30 | + |
| 31 | + - name: Install dependencies |
| 32 | + run: cd NextJS && npm ci |
| 33 | + |
| 34 | + - name: Run build |
| 35 | + run: cd NextJS && npm run build |
| 36 | + |
| 37 | + react: |
| 38 | + name: React check and deploy |
| 39 | + runs-on: ubuntu-latest |
| 40 | + steps: |
| 41 | + - name: Check out repository |
| 42 | + uses: actions/checkout@v4 |
| 43 | + |
| 44 | + - name: Setup node |
| 45 | + uses: actions/setup-node@v4 |
| 46 | + with: |
| 47 | + node-version: 18 |
| 48 | + cache: npm |
| 49 | + cache-dependency-path: React/package-lock.json |
| 50 | + |
| 51 | + - name: Install dependencies |
| 52 | + run: cd React && npm ci |
| 53 | + |
| 54 | + - name: Run build |
| 55 | + env: |
| 56 | + CI: false |
| 57 | + run: cd React && npm run build |
| 58 | + |
| 59 | + vue: |
| 60 | + name: VueJS check and deploy |
| 61 | + runs-on: ubuntu-latest |
| 62 | + steps: |
| 63 | + - name: Check out repository |
| 64 | + uses: actions/checkout@v4 |
| 65 | + |
| 66 | + - name: Setup node |
| 67 | + uses: actions/setup-node@v4 |
| 68 | + with: |
| 69 | + node-version: 18 |
| 70 | + cache: npm |
| 71 | + cache-dependency-path: Vue/package-lock.json |
| 72 | + |
| 73 | + - name: Install dependencies |
| 74 | + run: cd Vue && npm ci |
| 75 | + |
| 76 | + - name: Run eslint |
| 77 | + run: cd Vue && npm run lint |
| 78 | + |
| 79 | + - name: Run build |
| 80 | + run: cd Vue && npm run build |
| 81 | + |
| 82 | + svelte: |
| 83 | + name: Svelte check and deploy |
| 84 | + runs-on: ubuntu-latest |
| 85 | + steps: |
| 86 | + - name: Check out repository |
| 87 | + uses: actions/checkout@v4 |
| 88 | + |
| 89 | + - name: Setup node |
| 90 | + uses: actions/setup-node@v4 |
| 91 | + with: |
| 92 | + node-version: 18 |
| 93 | + cache: npm |
| 94 | + cache-dependency-path: Svelte/package-lock.json |
| 95 | + |
| 96 | + - name: Install dependencies |
| 97 | + run: cd Svelte && npm ci |
| 98 | + |
| 99 | + - name: Run check |
| 100 | + run: cd Svelte && npm run check |
| 101 | + |
| 102 | + - name: Run build |
| 103 | + run: cd Svelte && npm run build |
0 commit comments