-
Notifications
You must be signed in to change notification settings - Fork 34
59 lines (46 loc) · 1.27 KB
/
test.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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "test"
on:
pull_request:
branches:
- main
- dev
push:
branches:
- '*'
jobs:
test-package:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4.1.7
- name: Use Node.js
uses: actions/setup-node@v4
- name: Install Dependencies for packages/common
run: yarn install --frozen-lockfile
working-directory: packages/common
- name: Unit tests for packages/common
run: yarn run test:cov
working-directory: packages/common/test/
test-sample:
runs-on: ubuntu-latest
strategy:
matrix:
dir:
- '01-monitoring'
# - '02-response-formatting'
- '03-temporal-package'
- '04-file-upload'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
- name: Install Dependencies for ${{ matrix.dir }}
run: yarn install
working-directory: sample/${{ matrix.dir }}
- name: Run Unit Tests
run: yarn run test:cov
working-directory: sample/${{ matrix.dir }}
- name: Run E2E Tests
run: yarn run test:e2e
working-directory: sample/${{ matrix.dir }}