-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.01 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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: pnpm
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: robinraju/release-downloader@v1.8
with:
repository: w3c/epubcheck
tag: v5.0.0
fileName: epubcheck-5.0.0.zip
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Test
run: |
pnpm test:ci
unzip epubcheck-5.0.0.zip
java -jar ./epubcheck-5.0.0/epubcheck.jar .output/test-core.epub
java -jar ./epubcheck-5.0.0/epubcheck.jar .output/test-cover.epub
java -jar ./epubcheck-5.0.0/epubcheck.jar .output/test-book.epub