-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (52 loc) · 1.39 KB
/
test.yml
File metadata and controls
66 lines (52 loc) · 1.39 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Unit and Integration
strategy:
matrix:
version: ["20.11.0", 20, 22]
os: [ubuntu-24.04, windows-2025, macos-15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.version }}
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test:unit:coverage
- name: Run integration tests
run: npm run test:integration
# Test matrix for older @ui5/cli versions to ensure compatibility
test-ui5cli-matrix:
name: Integration tests with @ui5/cli ${{matrix.ui5-cli}}
strategy:
fail-fast: false
matrix:
ui5-cli: [
"latest-3"
]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Use Node.js LTS
uses: actions/setup-node@v6
with:
node-version: 22.x
- name: Install dependencies
run: npm ci --engine-strict # --engine-strict is used to fail-fast if deps require node versions unsupported by the repo
- name: Install @ui5/cli ${{matrix.ui5-cli}}
run: npm i -D @ui5/cli@${{matrix.ui5-cli}}
- name: Run integration tests
run: npm run test:integration