-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (54 loc) · 1.38 KB
/
config_dev.yaml
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
60
name: Config dev CI
on:
pull_request:
paths:
- "config/**"
- "config-sequelize/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
config:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies
working-directory: config
run: npm ci
- name: Build
working-directory: config
run: |
export NODE_OPTIONS=--no-experimental-fetch
npm run build:lib
- name: Run tests
working-directory: config
run: npm run test
config-sequelize:
needs:
- config
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Build config
run: |
cd config
npm i
export NODE_OPTIONS=--no-experimental-fetch
npm run pack:lib
cp dist/recursyve-nestjs-config-*.tgz ../config-sequelize
cd ../config-sequelize
npm i ./recursyve-nestjs-config-*.tgz
- name: Install dependencies
working-directory: config-sequelize
run: npm i
- name: Run tests
working-directory: config-sequelize
run: npm run test