generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (37 loc) · 953 Bytes
/
build-node.yml
File metadata and controls
45 lines (37 loc) · 953 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
37
38
39
40
41
42
43
44
45
name: Build Node
defaults:
run:
shell: bash
working-directory: ui
on:
push:
branches: [ "main" ]
paths: ['ui/**']
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- uses: nanasess/setup-chromedriver@v2
with:
# Optional: do not specify to match Chrome's version
chromedriver-version: '88.0.4324.96'
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Download dependencies
run: npm ci
- name: Build
run: npm run build --if-present
- name: Running Test
run: npm run test:ci