Skip to content

Commit 3c9c424

Browse files
committed
include test pipeline in deploy to ensure it passed the check before deployment
1 parent c89a6d7 commit 3c9c424

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,29 @@ on:
66
- master
77

88
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [18.18.0]
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
cache: 'npm'
21+
- name: Clear npm cache
22+
run: npm cache clean --force
23+
- name: Installing dependencies
24+
run: npm ci
25+
- name: Running linter
26+
run: npm run lint
27+
- name: Running test
28+
run: npm run test
29+
env:
30+
CI: true
31+
932
deploy:
1033
runs-on: ubuntu-latest
1134
env:

0 commit comments

Comments
 (0)