-
Notifications
You must be signed in to change notification settings - Fork 79
48 lines (40 loc) · 1.06 KB
/
test.yml
File metadata and controls
48 lines (40 loc) · 1.06 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
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
unit:
name: "${{ matrix.workspace }} (Node ${{ matrix.version }}, ${{ matrix.os }})"
strategy:
fail-fast: false
matrix:
version: [22, 24]
os: [ubuntu-24.04, windows-2025, macos-15]
workspace:
- "@ui5/builder"
- "@ui5/cli"
- "@ui5/fs"
- "@ui5/logger"
- "@ui5/project"
- "@ui5/server"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.version }}
# This is needed as npm 11 has issues with running "npm ci" on projects that use "overrides"
- name: Install recent npm version (Node 24 only)
if: matrix.version == 24
run: npm install -g npm@11 && npm --version
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run unit --workspace=${{ matrix.workspace }}