-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (61 loc) · 1.95 KB
/
ci.yaml
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
67
68
69
70
71
72
73
74
75
name: Auth Clients CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Auth-Clients-CI:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout branch
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure git
run: |
git config --local user.email [email protected]
git config --local user.name imodeljs-admin
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '18.12.0'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install packages
run: pnpm install
- name: Audit packages
run: pnpm audit --audit-level=high
- name: Beachball check
run: pnpm check
- name: Build packages
run: pnpm build
- name: Lint packages
run: pnpm lint
# Necessary for running linux tests in a dbus session
# See packages/electron/README.md for more details
- name: Install Packages - Linux
run: |
sudo apt-get install -y libsecret-1-dev
sudo apt-get install -y dbus-x11
sudo apt-get install -y gnome-keyring
if: runner.os == 'Linux'
# Tests are run in a dbus session after creating a keyring password for compatibility with Keytar
# See packages/electron/README.md for more details
- name: pnpm cover - Linux
run: >-
dbus-run-session -- sh -c
"echo 'keyringPassword' | gnome-keyring-daemon -r -d --unlock ;
xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' pnpm cover --verbose"
if: runner.os == 'Linux'
- name: pnpm cover - Windows/Mac
run: pnpm cover --verbose
if: runner.os == 'Windows' || runner.os == 'macOS'