-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (48 loc) · 1.45 KB
/
node.js.yml
File metadata and controls
52 lines (48 loc) · 1.45 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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Lint/Test
on:
push:
branches: [ 'nana-dev', 'dev' ]
jobs:
# Test job to test Angular app
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "20.x"
- name: Install dependencies
run: npm install
#- name: Run tests
# run: npm run test:ci
#- name: Code Coverage Report
# uses: irongut/CodeCoverageSummary@v1.3.0
# with:
# filename: coverage/**/coverage.cobertura.xml
# badge: true
# fail_below_min: false
# format: markdown
# hide_branch_rate: false
# hide_complexity: true
# indicators: true
# output: both
# thresholds: '60 80'
# Build job to build Angular app
build:
needs: [ test ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "20.x"
- name: Install dependencies
run: npm install
- name: Build Angular app
run: npm run build