-
Notifications
You must be signed in to change notification settings - Fork 1
117 lines (105 loc) · 3.44 KB
/
build.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Build Workflow
"on":
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Build:
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os:
- ubuntu-22.04
node-version:
- 22.x
- 18.x
steps:
- name: "Set up Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v4
with:
node-version: "${{ matrix.node-version }}"
- uses: actions/checkout@v4
- name: "Install dependencies"
run: "npm ci"
- name: "Run"
run: "npm run ci"
- name: Upload jsonpointerx coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/packages/js/jsonpointerx
flags: "jsonpointerx"
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload asyncctx coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/packages/node/asyncctx
flags: "asyncctx"
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload sqlite3orm coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/packages/node/sqlite3orm
flags: "sqlite3orm"
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload node-utils coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/packages/node/@homeofthings/node-utils
flags: "node-utils"
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload node-sys coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/packages/node/@homeofthings/node-sys
flags: "node-sys"
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload nestjs-utils coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/packages/node/@homeofthings/nestjs-utils
flags: "nestjs-utils"
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload nestjs-config coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/packages/node/@homeofthings/nestjs-config
flags: "nestjs-config"
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload nestjs-logger coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/packages/node/@homeofthings/nestjs-logger
flags: "nestjs-logger"
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload nestjs-sqlite3 coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/packages/node/@homeofthings/nestjs-sqlite3
flags: "nestjs-sqlite3"
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: "Benchmark jsonpointerx"
working-directory: "./tools/benchmarks/jsonpointerx"
run: |
npm i
npm test