You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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
2
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+
name: Build
5
+
6
+
on:
7
+
push:
8
+
branches:
9
+
- main
10
+
- release/*
11
+
pull_request:
12
+
branches:
13
+
- main
14
+
- release/*
15
+
16
+
# Allows GitHub to use this workflow to validate the merge queue
17
+
merge_group:
18
+
19
+
# Allows you to run this workflow manually from the Actions tab
20
+
workflow_dispatch:
21
+
22
+
env:
23
+
NODE_OPTIONS: --max_old_space_size=16384
24
+
25
+
jobs:
26
+
build:
27
+
runs-on: ubuntu-latest
28
+
29
+
steps:
30
+
- uses: actions/checkout@v4
31
+
- name: Use Node.js
32
+
uses: actions/setup-node@v4
33
+
with:
34
+
node-version-file: .nvmrc
35
+
cache: npm
36
+
cache-dependency-path: ./package-lock.json
37
+
- run: npm ci --no-audit --no-fund --prefer-offline
# 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
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
3
4
-
name: Build and test
4
+
name: Test
5
5
6
6
on:
7
7
push:
@@ -26,21 +26,15 @@ jobs:
26
26
build:
27
27
runs-on: ubuntu-latest
28
28
29
-
strategy:
30
-
matrix:
31
-
node-version: [20]
32
-
33
29
steps:
34
30
- uses: actions/checkout@v4
35
-
- name: Use Node.js ${{ matrix.node-version }}
31
+
- name: Use Node.js
36
32
uses: actions/setup-node@v4
37
33
with:
38
-
node-version: ${{ matrix.node-version }}
39
-
cache: 'npm'
34
+
node-version-file: .nvmrc
35
+
cache: npm
36
+
cache-dependency-path: ./package-lock.json
40
37
- run: npm ci --no-audit --no-fund --prefer-offline
41
-
- run: npm run lint:errors
42
-
- run: npm run build
43
-
- run: npm run generate:jsonschema:dist
44
38
- run: npx playwright install --with-deps
45
39
- run: npm test
46
40
- name: Upload Code Coverage reports
@@ -50,13 +44,3 @@ jobs:
50
44
name: code-coverage
51
45
path: coverage/
52
46
retention-days: 30
53
-
# Commented out since it is outdated and is quite spammy
0 commit comments