-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (64 loc) · 1.74 KB
/
ci.yml
File metadata and controls
77 lines (64 loc) · 1.74 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: ci
on:
push:
pull_request:
jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip-ci')"
strategy:
matrix:
os:
- ubuntu-latest
node-version:
- 24.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v5
name: Install pnpm
with:
version: 10
run_install: false
- name: pnpm-store-dir
id: pnpm-store-dir
shell: bash
run: |
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v5
name: pnpm-cache-setup
id: pnpm-cache-setup
env:
cache-name: cache-pnpm-store
with:
path: ${{ env.PNPM_STORE_PATH }}
key: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.node-version
}}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.node-version }}-
${{ env.cache-name }}-${{ runner.os }}-
${{ env.cache-name }}-
- name: pnpm-install
id: pnpm-install
run: pnpm i
- name: build
run: pnpm build
- name: test
run: pnpm test
- name: lint
run: pnpm lint
- name: fmt-check
run: pnpm fmtc
automerge:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'opened'
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
target: "minor"