-
Notifications
You must be signed in to change notification settings - Fork 38
52 lines (44 loc) · 1.58 KB
/
e2e-ci.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
name: Run SAF-CLI E2E Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
# runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
platform: [ ubuntu, macos, windows ]
runs-on: ${{ matrix.platform }}-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js on ${{ matrix.platform }}
uses: actions/setup-node@v4
with:
node-version: "22"
check-latest: true
cache: 'npm'
- name: Install dependencies on ${{ matrix.platform }}
run: npm ci
- name: Install cinc-auditor/Compile/Run Tests on ${{ matrix.platform }}
if: ${{ matrix.platform == 'windows-latest' }}
shell: pwsh
run: |
Start-Process powershell -Verb RunAs
. { iwr -useb https://omnitruck.cinc.sh/install.ps1 } | iex; install -project cinc-auditor
$env:Path = $env:Path + ';C:\cinc-project\cinc-auditor\bin' + ';C:\cinc-project\cinc-auditor\embedded\bin'
cinc-auditor -v
npm run prepack
npm run test
- name: Install cinc-auditor/Compile/Run Tests on ${{ matrix.platform }}
if: ${{ matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest' }}
run: |
curl -L https://omnitruck.cinc.sh/install.sh | sudo bash -s -- -P cinc-auditor
npm run prepack
npm run test
# - name: Prepack (compile) on ${{ matrix.platform }}
# run: npm run prepack
# - name: Run e2e tests on ${{ matrix.platform }}
# run: npm run test