-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 907 Bytes
/
code-scan.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
name: Test Code Coverage
on:
push:
branches:
- main
jobs:
license-scan:
name: License Scan
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Run FOSSA scan and upload build data
uses: fossa-contrib/fossa-action@v3
with:
fossa-api-key: ${{ secrets.FOSSA_API }}
code-coverage:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
working-directory: ./nanolims_app
run: npm install
- name: Run tests and collect coverage
working-directory: ./nanolims_app
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3