-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.09 KB
/
main_pr_packages.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 (packages)
on:
pull_request:
branches:
- main
- dev
paths:
- "packages/**"
- ".github/workflows/main_pr_packages.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 packages:generate
env:
CI: true
# lint
- name: Typecheck 🧷
run: pnpm run packages:typecheck
- name: Lint 🛫
run: pnpm run packages:lint
# build
- name: Build 🏗
run: pnpm run packages:build
# test
- name: Test 🧪
run: pnpm run packages:test