-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (55 loc) · 1.54 KB
/
pipeline.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
library:
name: Library Validation
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: [ 16.x, 18.x, 20.x ]
steps:
- name: Code Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node-version }} 🕸️
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Library Dependencies 💾
run: yarn install
- name: Build Library 🔧
run: yarn build
- name: Run Library Tests 🧪
run: yarn test
nestjs_app:
name: NestJS Example App Validation
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: [ 16.x, 20.x ]
steps:
- name: Code Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node-version }} 🕸️
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Library Dependencies 💾
run: yarn install
- name: Build Library 🔧
run: yarn build
- name: Install NestJS Example App Dependencies 💾
run: |
cd ./examples/nestjs-mongoose-book-manager
yarn install -f
- name: Build NestJS Example App 🔧
run: yarn build
- name: Run NestJS Example App Tests 🧪
run: yarn test