generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (52 loc) · 1.37 KB
/
integration-test.yml
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
name: Integration-Tests
on:
pull_request:
branches: [main]
paths:
- '.github/**'
- 'package.json'
- 'scripts/**'
- 'test/**/*.integrationtest.js'
push:
branches: [main]
paths:
- '.github/**'
- 'package.json'
- 'scripts/**'
- 'test/**/*.integrationtest.js'
workflow_dispatch:
concurrency:
group: integration-test-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
integration-test:
strategy:
fail-fast: false
matrix:
version: [22, 20, 18]
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
- run: |
npm i -g npm
npm ci
npm install file:. --no-save --force
npm run prerelease:ci-fix
npm run rollup:off
- name: Run integration test with non-admin user on windows
if: matrix.os == 'windows-latest'
uses: ./.github/actions/run-as-non-admin
with:
run: |
echo "whoami:$(whoami)"
echo "home:$HOME"
echo "userprofile:$USERPROFILE"
npm run test:integration
- name: Run integration tests
if: matrix.os != 'windows-latest'
run: |
npm run test:integration