-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (43 loc) · 1.22 KB
/
Copy pathci.yml
File metadata and controls
58 lines (43 loc) · 1.22 KB
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
name: CI
on:
pull_request:
push:
branches:
- main
- master
permissions:
contents: read
jobs:
quality:
name: Quality
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Enable Corepack
run: corepack enable
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22.x
cache: yarn
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Type check
run: yarn type-check
- name: Lint server
run: yarn workspace @my-first-nest/server eslint "{src,database,tests}/**/*.ts"
- name: Lint web
run: yarn workspace @my-first-nest/web lint
- name: Test server
run: yarn workspace @my-first-nest/server test --run --exclude=tests/e2e/**
- name: Test web
run: yarn workspace @my-first-nest/web test
- name: Build server
run: yarn workspace @my-first-nest/server build
- name: Build web
run: yarn workspace @my-first-nest/web build
- name: Build docs
run: yarn workspace @my-first-nest/docs build