-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 1.4 KB
/
library.lib-nest.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
name: library.lib-nest
on:
push:
branches:
- main
paths:
- .github/workflows/library.lib-nest.yml
- packages/backend/lib-nest/**
- packages/backend/tsconfig-backend.json
- package.json
- tsconfig.json
- types/**/*.ts
- '!**.md'
- '!**/.gitignore'
pull_request:
paths:
- .github/workflows/library.lib-nest.yml
- packages/backend/lib-nest/**
- packages/backend/tsconfig-backend.json
- package.json
- tsconfig.json
- types/**/*.ts
- '!**.md'
- '!**/.gitignore'
workflow_dispatch: null
env:
PACKAGE: lib-nest
jobs:
test_unit:
name: Build, Lint, and Unit Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- name: Checkout git repository
uses: actions/checkout@master
- name: Using node.js ${{ matrix.node-version }}
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: yarn install --immutable
- name: Build package
run: yarn workspace $PACKAGE build
- name: Lint package
run: yarn workspace $PACKAGE lint
- name: Run package unit tests
run: yarn workspace $PACKAGE test:unit
test_integration:
name: Test Integration
runs-on: ubuntu-latest
steps:
- name: Do nothing
run: exit 0