forked from googleapis/release-please
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 799 Bytes
/
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
on:
pull_request:
merge_group:
name: ci
jobs:
tests:
strategy:
matrix:
node: [18, 20]
os: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: corepack enable && corepack prepare
# Note: actions/setup-node doesn't yet provide parameters for corepack, we need to run it again after enabling it
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: node --version
- name: Install dependencies
run: pnpm install
- name: Lint code
run: pnpm lint
- name: Run tests
run: pnpm test