-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.05 KB
/
node.js.yml
File metadata and controls
39 lines (34 loc) · 1.05 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
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install GitVersion
run: |
curl -sL https://github.com/GitTools/GitVersion/releases/download/6.6.0/gitversion-linux-x64-6.6.0.tar.gz -o /tmp/gitversion.tar.gz
tar xzf /tmp/gitversion.tar.gz -C /usr/local/bin gitversion
chmod +x /usr/local/bin/gitversion
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm audit
- run: pnpm i --frozen-lockfile
- run: pnpm run --if-present build --only
- run: pnpm run --if-present type-check --only
- run: pnpm run --if-present test --only
- run: pnpm exec biome ci --diagnostic-level=error .
- run: pnpm --filter scripts run validate