-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (29 loc) · 908 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
name: CI
on:
push:
branches:
- main
- "renovate/**"
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install --no-optional --no-audit --no-fund --progress=false
# Test Git hooks in CI, to make sure script upgrades do not break them.
- run: npm run prepare
# Test commit message validation in CI.
- run: git log -1 --pretty=%B >> latest.log && ./.git/hooks/commit-msg latest.log
- uses: biomejs/setup-biome@v2
- run: biome ci
- run: npx prettier --check '**/?(.)*.{md,yaml,yml,html}'