-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.46 KB
/
Copy pathci.yml
File metadata and controls
54 lines (50 loc) · 1.46 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
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
check:
name: Node ${{ matrix.node }} On ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [22, 24]
steps:
- name: Check Out Repository
uses: actions/checkout@v4
- name: Set Up pnpm
uses: pnpm/action-setup@v4
- name: Set Up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Typecheck
run: pnpm typecheck
- name: Lint
run: pnpm lint
- name: Check Formatting
if: runner.os == 'Linux' && matrix.node == 22
run: pnpm format:check
- name: Install epubcheck
if: runner.os == 'Linux'
run: |
curl -sSL -o epubcheck.zip https://github.com/w3c/epubcheck/releases/download/v5.2.1/epubcheck-5.2.1.zip
unzip -q epubcheck.zip -d "$RUNNER_TEMP"
echo "EPUBCHECK_JAR=$RUNNER_TEMP/epubcheck-5.2.1/epubcheck.jar" >> "$GITHUB_ENV"
- name: Run Tests
run: pnpm test
- name: Pack Smoke Test
run: pnpm pack:check