-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 884 Bytes
/
node.js.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
name: Node.js CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend/app
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.2.0
uses: actions/setup-node@v4
with:
node-version: 20.2.0
cache: 'npm'
cache-dependency-path: frontend/app
- name: Install js openapi-generator client
run: npm install @openapitools/[email protected] -g
- name: Generate js code from openapi
run: |
cd ../..
bash scripts/dev/generate-client-code-from-openapi.sh
- name: Clean and install dependencies
run: npm ci
- name: Build js app
run: npm run build --if-present
env:
CI: false
- name: Run jest js tests
run: npm test