-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (57 loc) · 1.73 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'Test'
on:
push:
branches:
- main
- '!renovate/**'
pull_request:
env:
FORCE_COLOR: 2
defaults:
run:
shell: bash
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
fail-fast: true
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Run Install
run: pnpm install --no-frozen-lockfile
- name: Cache pnpm dependencies
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: pnpm-store-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml')}}
restore-keys: |
pnpm-store-${{ runner.os }}-
- name: 'Test'
run: pnpm run test
- name: Lint
run: pnpm run lint
- name: Build
run: pnpm run build
- name: Build Stackblitz
run: pnpm dlx [email protected] publish --compact --pnpm .
- name: Build size report
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}