-
Notifications
You must be signed in to change notification settings - Fork 1
93 lines (75 loc) · 2.17 KB
/
Copy pathci.yml
File metadata and controls
93 lines (75 loc) · 2.17 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: '15 3 * * *'
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
askr-peer:
name: Askr peer (${{ matrix.askr-version }})
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
askr-version: ['0.2.0', latest]
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: 'lts/*'
cache: npm
- name: Install dependencies
run: npm ci
- name: Select Askr peer version
run: npm install --no-save @askrjs/askr@${{ matrix.askr-version }}
- name: Install Chromium with Linux dependencies
run: npx playwright install --with-deps chromium
- name: Test Monaco lifecycle compatibility
run: |
npm run test:jsdom
npx playwright test --project=chromium-desktop tests/browser/components/monaco-editor/integration.spec.ts
ci:
name: CI (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: 'lts/*'
cache: npm
- name: Install dependencies
run: npm ci
- name: Install browser engines with Linux dependencies
if: ${{ runner.os == 'Linux' }}
run: npx playwright install --with-deps chromium firefox webkit
- name: Install browser engines
if: ${{ runner.os != 'Linux' }}
run: npx playwright install chromium firefox webkit
- name: Format check
run: npm run fmt --if-present -- --check
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Type checks
run: |
npm run typecheck --if-present
npm run test:types --if-present