-
-
Notifications
You must be signed in to change notification settings - Fork 71
39 lines (34 loc) · 848 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
34
35
36
37
38
39
name: Main CI
on: [push, pull_request]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
build:
name: Build Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ env.BRANCH_NAME }}
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 9
- name: Setup node environment
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "pnpm"
cache-dependency-path: "web/pnpm-lock.yaml"
- name: Install dependencies
run: pnpm i --frozen-lockfile
working-directory: web
- name: Try build
run: pnpm build
env:
CI: true