-
Notifications
You must be signed in to change notification settings - Fork 233
39 lines (39 loc) · 941 Bytes
/
build.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
34
35
36
37
38
39
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
NODE_OPTIONS: "--max-old-space-size=28000"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18
- name: Cache Node.js modules
uses: actions/cache@v1
with:
path: ~/.pnpm-store
key: ${{ runner.OS }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install Node.js modules
run: |
npm install -g [email protected]
pnpm recursive install --frozen-lockfile
- name: Build all workspaces
run: |
pnpm -w build
- name: Run tests in all workspaces
run: |
pnpm -w test