Skip to content

Commit 2276b71

Browse files
committed
ci: fix test job in build script (2)
1 parent fc95484 commit 2276b71

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
build:
13+
test:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
@@ -19,13 +19,13 @@ jobs:
1919
uses: actions/setup-node@v2
2020
with:
2121
node-version: 14
22-
- name: Build
22+
- name: Test
2323
run: |
24-
npm ci
25-
npm run build
24+
npm install
25+
npm run test
2626
27-
test:
28-
needs: build
27+
build:
28+
needs: test
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout
@@ -34,6 +34,8 @@ jobs:
3434
uses: actions/setup-node@v2
3535
with:
3636
node-version: 14
37-
- name: Test
38-
run: npm run test
37+
- name: Build
38+
run: |
39+
npm ci
40+
npm run build
3941

0 commit comments

Comments
 (0)