-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (42 loc) · 1.25 KB
/
Copy pathmain.yaml
File metadata and controls
52 lines (42 loc) · 1.25 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
name: ExTester Code Generator Main CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [max]
nodejs: ["20.x"]
type: [stable]
fail-fast: false
env:
CODE_VERSION: ${{ matrix.version }}
CODE_TYPE: ${{ matrix.type }}
steps:
- name: 👷🏻 Checkout Repository
uses: actions/checkout@v6
- name: ⚙️ Setup NodeJS
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.nodejs }}
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Allow unprivileged user namespace (ubuntu)
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Run Unit Tests (macOS, windows)
if: ${{ ! startsWith(matrix.os, 'ubuntu') }}
run: npm test
- name: Run Unit Tests (linux)
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npm test