-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (59 loc) · 1.64 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
56
57
58
59
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: [22.x, 23.x]
steps:
- name: Checkout Code 🛎️
uses: actions/checkout@v4
- name: Setup Node ${{ matrix.node-version }} 🕸️
uses: actions/setup-node@v4
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]
node-version: [22.x, 23.x]
steps:
- name: Checkout Code 🛎️
uses: actions/checkout@v4
- name: Setup Node ${{ matrix.node-version }} 🕸️
uses: actions/setup-node@v4
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 --force
- name: Build NestJS Example App 🔧
run: |
cd ./examples/nestjs-mongoose-book-manager
yarn build
- name: Run NestJS Example App Tests 🧪
run: |
cd ./examples/nestjs-mongoose-book-manager
yarn test