Skip to content

Commit 5307e03

Browse files
committed
👷 ci(unit): install dapr and use node 16 only
1 parent 3d98a83 commit 5307e03

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

.github/workflows/unit.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,29 @@ name: Node.js Unit CI
22
on:
33
push:
44
branches:
5-
- master
5+
- master
66
pull_request:
77
jobs:
88
test:
99
strategy:
1010
matrix:
11-
node-version: [10, 12, 14, 16]
11+
node-version: [16]
1212
platform: [ubuntu-latest, macos-latest, windows-latest]
1313
runs-on: ${{ matrix.platform }}
1414
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v2
17-
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v2
19-
with:
20-
node-version: ${{ matrix.node-version }}
21-
- name: Install dependencies
22-
run: npm install
23-
- name: Build TypeScript project
24-
run: npm run build --if-present
25-
- name: Test
26-
run: npm test
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: Install Dapr
22+
uses: dapr/setup-dapr@v1
23+
with:
24+
version: '1.5.1'
25+
- name: Install dependencies
26+
run: npm install
27+
- name: Build TypeScript project
28+
run: npm run build --if-present
29+
- name: Test
30+
run: npm test

0 commit comments

Comments
 (0)