Skip to content

Commit f191ea7

Browse files
committed
GitHub Actions: Split test and deploy jobs
1 parent b308cec commit f191ea7

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,43 @@
1-
name: Build and Deploy
1+
name: Test, Build and Deploy
22
on:
33
push:
44
branches:
55
- master
66
jobs:
7-
build-and-deploy:
7+
test:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
1111

1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 16
15-
14+
node-version: 22
15+
1616
- name: Install and Build
1717
run: |
1818
npm install
19-
npm run build
19+
npm run build --prefix cli
20+
npm run build --prefix codemirror
2021
2122
- name: Test
2223
run: |
2324
npm test
2425
26+
build-and-deploy:
27+
runs-on: ubuntu-latest
28+
needs: test
29+
steps:
30+
- uses: actions/checkout@v3
31+
32+
- uses: actions/setup-node@v3
33+
with:
34+
node-version: 22
35+
36+
- name: Install and Build
37+
run: |
38+
npm install
39+
npm run build
40+
2541
- name: Deploy 🚀
2642
uses: JamesIves/[email protected]
2743
with:

0 commit comments

Comments
 (0)