-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 933 Bytes
/
pull_request.yml
File metadata and controls
44 lines (34 loc) · 933 Bytes
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
name: Pull Request
on:
pull_request:
jobs:
test:
name: Pull request test
strategy:
matrix:
os: [ubuntu-latest]
node: [20]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
run: npm install -g pnpm@9.2.0
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
node_modules
~/.pnpm-store
key: ${{ runner.os }}-deps-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-deps-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build