2022-06-01 11:19:11 +02:00
|
|
|
name: Honkit test
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-06-02 14:28:08 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-06-01 11:19:11 +02:00
|
|
|
strategy:
|
|
|
|
max-parallel: 4
|
|
|
|
steps:
|
2022-06-01 17:49:13 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: main
|
|
|
|
|
|
|
|
- name: Install honkit and dependencies
|
2022-06-01 11:19:11 +02:00
|
|
|
run: |
|
2022-06-01 16:12:27 +02:00
|
|
|
sudo apt -y install libgif-dev calibre npm nodejs
|
2022-06-01 11:35:49 +02:00
|
|
|
sudo npm config set strict-ssl false
|
|
|
|
sudo npm cache clean -f
|
2022-06-01 16:12:27 +02:00
|
|
|
npm install honkit
|
2022-06-01 17:10:22 +02:00
|
|
|
- name: Install plugin-github
|
|
|
|
run: |
|
2022-06-01 11:35:49 +02:00
|
|
|
npm install gitbook-plugin-github
|
2022-06-01 17:10:22 +02:00
|
|
|
- name: Install plugin-atoc
|
|
|
|
run: |
|
2022-06-01 11:35:49 +02:00
|
|
|
npm install gitbook-plugin-atoc
|
2022-06-01 17:10:22 +02:00
|
|
|
- name: Install plugin-anchors
|
|
|
|
run: |
|
2022-06-01 11:35:49 +02:00
|
|
|
npm install gitbook-plugin-anchors
|
2022-06-01 17:49:13 +02:00
|
|
|
- name: Install plugin-alerts
|
|
|
|
run: |
|
|
|
|
npm install gitbook-plugin-alerts
|
|
|
|
- name: Install plugin-search
|
|
|
|
run: |
|
|
|
|
npm install gitbook-plugin-search
|
|
|
|
- name: Install plugin-gist
|
|
|
|
run: |
|
|
|
|
npm install gitbook-plugin-gist
|
2022-06-01 17:10:22 +02:00
|
|
|
- name: Install plugin-image-class
|
|
|
|
run: |
|
2022-06-01 11:35:49 +02:00
|
|
|
npm install gitbook-plugin-image-class
|
2022-06-01 17:10:22 +02:00
|
|
|
- name: Install plugin-codesnippet
|
|
|
|
run: |
|
2022-06-01 11:35:49 +02:00
|
|
|
npm install gitbook-plugin-codesnippet
|
2022-06-01 17:10:22 +02:00
|
|
|
- name: Install plugin-last-modified
|
|
|
|
run: |
|
2022-06-01 11:35:49 +02:00
|
|
|
npm install gitbook-plugin-last-modified
|
2022-06-01 17:49:13 +02:00
|
|
|
- name: Install plugin-fontsettings
|
|
|
|
run: |
|
|
|
|
npm install gitbook-plugin-fontsettings
|
2022-06-01 17:10:22 +02:00
|
|
|
- name: Install plugin-sitemap
|
|
|
|
run: |
|
2022-06-01 11:35:49 +02:00
|
|
|
npm install gitbook-plugin-sitemap
|
2022-06-01 17:10:22 +02:00
|
|
|
- name: Install plugin-advanced-emoji
|
|
|
|
run: |
|
2022-06-01 11:35:49 +02:00
|
|
|
npm install gitbook-plugin-advanced-emoji
|
2022-06-01 17:18:03 +02:00
|
|
|
- name: Run honkit build
|
|
|
|
run: |
|
2022-06-01 17:49:13 +02:00
|
|
|
npx honkit build
|
2022-06-01 21:44:09 +02:00
|
|
|
- name: Run honkit epub
|
2022-06-01 17:49:13 +02:00
|
|
|
run: |
|
|
|
|
npx honkit epub
|
2022-06-01 21:44:09 +02:00
|
|
|
- name: Run honkit mobi
|
2022-06-01 17:49:13 +02:00
|
|
|
run: |
|
|
|
|
npx honkit mobi
|
2022-06-02 14:28:08 +02:00
|
|
|
- name: Run honkit pdf
|
|
|
|
run: |
|
|
|
|
npx honkit pdf
|