-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.16 KB
/
build-and-test-workflow.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: Build-and-test-workflow
# This example workflow assumes that the default branch for your repository is `main`. If the default branch has a different name, edit this example and add your repository's default branch.
on:
push:
#
jobs:
build:
runs-on: ubuntu-latest
# This job uses a matrix strategy to run the job four times, once for each specified Node version. For more information, see "[AUTOTITLE](/actions/using-jobs/using-a-matrix-for-your-jobs)."
strategy:
matrix:
node-version: [18.x, 20.x]
#
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: apt install chromium-browser && export CHROME_BIN='/usr/bin/chromium-browser'
- run: npm ci
- run: npm run build -ws
- run: npm run test
- run: npm run coverage
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: |
reports/aas-portal.xml
reports/aas-server.xml
reports/common.xml