forked from ferdikoomen/openapi-typescript-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (27 loc) · 762 Bytes
/
Copy pathunittest.yml
File metadata and controls
37 lines (27 loc) · 762 Bytes
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
name: unittest
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup Node environment
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- name: Cache Modules
uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Build library
run: npm run release
- name: Run unit tests
run: npm run test
# - name: Run e2e tests
# run: npm run test:e2e
# - name: Submit to Codecov
# run: npm run codecov