-
Notifications
You must be signed in to change notification settings - Fork 11
33 lines (30 loc) · 873 Bytes
/
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
name: Node.js CI
on:
pull_request:
branches: [ v2-bridge ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 19.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint (show only errors)
run: pnpm lint --quiet
working-directory: ./packages/synapse-bridge
- name: Test
run: pnpm test:unit
working-directory: ./packages/synapse-bridge
- name: Build
run: pnpm build
working-directory: ./packages/synapse-bridge