-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (33 loc) · 1 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Check types
run: npm run typecheck
- name: Run the tests
run: npm run test:coverage
- name: Build
run: npm run build
- name: Test that works on esm-vitest-express
run: bash test/e2e/esm-vitest-express/run.sh
- name: Test that works on esm-node-express
run: bash test/e2e/esm-node-express/run.sh
- name: Test that works on nestjs
run: bash test/e2e/nestjs/run.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5