forked from GoogleCloudPlatform/functions-framework-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (37 loc) · 1.08 KB
/
unit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Node.js Unit CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
node-version: [16]
dapr-version: [1.6.3, 1.7.4, 1.8.3, 1.9.2, 1.10.7, 1.11.0]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Docker
uses: docker-practice/actions-setup-docker@master
- name: Install SkyWalking
run: docker pull apache/skywalking-oap-server:9.2.0
- name: Install Dapr CLI
uses: dapr/setup-dapr@v1
with:
version: '1.9.1'
- name: Initialize Dapr Runtime
run: dapr init -s --runtime-version ${{ matrix.dapr-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Project Dependencies
run: npm install
- name: Build TypeScript Project
run: npm run build --if-present
- name: Run Tests
run: npm test