Skip to content

Commit 39c1ca5

Browse files
author
Markus Howard
committed
create a ci pipeline to build & test
1 parent 39636bb commit 39c1ca5

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Use Node.js 22
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '22'
18+
cache: 'npm'
19+
- name: Install dependencies
20+
run: npm ci
21+
- run: npm run build
22+
- name: Run ESLint
23+
run: npm run lint
24+
- name: Ensure no changes
25+
run: git diff --exit-code
26+
27+
test:
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
os: [ubuntu-latest, macos-latest, windows-latest]
32+
runs-on: ${{ matrix.os }}
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Use Node.js 22
36+
uses: actions/setup-node@v4
37+
with:
38+
# https://github.com/microsoft/playwright-mcp/issues/344
39+
node-version: '22'
40+
cache: 'npm'
41+
- name: Install dependencies
42+
run: npm ci
43+
- name: Build
44+
run: npm run build
45+
- name: Run tests
46+
run: npm test

0 commit comments

Comments
 (0)