-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.07 KB
/
main_pr_node_apps.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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI (apps) Node
on:
pull_request:
branches:
- main
- dev
paths:
- "apps/**"
- ".github/workflows/main_pr_node_apps.yaml"
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
ci:
runs-on: ubuntu-latest
# needs: build
strategy:
fail-fast: true
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
# install
- name: Install dependencies 📦
run: pnpm i --frozen-lockfile
# generate
- name: Generate deps 🍪
run: pnpm run apps:generate
env:
CI: true
# lint
- name: Typecheck 🧷
run: pnpm run apps:typecheck
- name: Lint 🛫
run: pnpm run apps:lint
# build
- name: Build 🏗
run: pnpm run apps:build
# test
- name: Test 🧪
run: pnpm run apps:test