From 95d5de7eeb75332d4e888b6ab5a57302ac874bd8 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 1 Jun 2022 11:19:11 +0200 Subject: [PATCH 1/4] new: [workflow] first tentative of honkit CI --- .github/workflows/honkit.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/honkit.yml diff --git a/.github/workflows/honkit.yml b/.github/workflows/honkit.yml new file mode 100644 index 0000000..2b048b5 --- /dev/null +++ b/.github/workflows/honkit.yml @@ -0,0 +1,16 @@ +name: Honkit test + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + steps: + - name: Install honkit + run: | + apt install nodejs + npm init --yes + npm install honkit --save-dev + npx honkit build From 9d6967a15705c5ecc17ed249bf51809234885f6f Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 1 Jun 2022 11:23:41 +0200 Subject: [PATCH 2/4] chg: [workflow] because npm is a mess --- .github/workflows/honkit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/honkit.yml b/.github/workflows/honkit.yml index 2b048b5..5e8e501 100644 --- a/.github/workflows/honkit.yml +++ b/.github/workflows/honkit.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Install honkit run: | - apt install nodejs + sudo apt install nodejs npm npm init --yes npm install honkit --save-dev npx honkit build From fe22935af286580ee5b9bbb7d7ad6941fd35e33a Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 1 Jun 2022 11:30:59 +0200 Subject: [PATCH 3/4] chg: [workflow] because npm is something from Mars --- .github/workflows/honkit.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/honkit.yml b/.github/workflows/honkit.yml index 5e8e501..8ec2d23 100644 --- a/.github/workflows/honkit.yml +++ b/.github/workflows/honkit.yml @@ -10,7 +10,20 @@ jobs: steps: - name: Install honkit run: | - sudo apt install nodejs npm - npm init --yes - npm install honkit --save-dev + sudo apt-get -y install libgif-dev calibre npm nodejs + sudo npm config set strict-ssl false + sudo npm cache clean -f + sudo npm install -g n + sudo n stable + sudo npm update -g + npm install honkit --save-dev + npm install gitbook-plugin-github + npm install gitbook-plugin-atoc + npm install gitbook-plugin-anchors + npm install gitbook-plugin-image-class + npm install gitbook-plugin-codesnippet + npm install gitbook-plugin-last-modified + npm install gitbook-plugin-sitemap + npm install gitbook-plugin-advanced-emoji + npm install gitbook-plugin-image-class npx honkit build From deda1da835ffcd09094f3355ce113ce30af6cfc0 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 1 Jun 2022 11:35:49 +0200 Subject: [PATCH 4/4] chg: [honkit] fixes --- .github/workflows/honkit.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/honkit.yml b/.github/workflows/honkit.yml index 8ec2d23..3a1ca46 100644 --- a/.github/workflows/honkit.yml +++ b/.github/workflows/honkit.yml @@ -11,19 +11,19 @@ jobs: - name: Install honkit run: | sudo apt-get -y install libgif-dev calibre npm nodejs - sudo npm config set strict-ssl false - sudo npm cache clean -f - sudo npm install -g n - sudo n stable - sudo npm update -g - npm install honkit --save-dev - npm install gitbook-plugin-github - npm install gitbook-plugin-atoc - npm install gitbook-plugin-anchors - npm install gitbook-plugin-image-class - npm install gitbook-plugin-codesnippet - npm install gitbook-plugin-last-modified - npm install gitbook-plugin-sitemap - npm install gitbook-plugin-advanced-emoji - npm install gitbook-plugin-image-class + sudo npm config set strict-ssl false + sudo npm cache clean -f + sudo npm install -g n + sudo n stable + sudo npm update -g + npm install honkit --save-dev + npm install gitbook-plugin-github + npm install gitbook-plugin-atoc + npm install gitbook-plugin-anchors + npm install gitbook-plugin-image-class + npm install gitbook-plugin-codesnippet + npm install gitbook-plugin-last-modified + npm install gitbook-plugin-sitemap + npm install gitbook-plugin-advanced-emoji + npm install gitbook-plugin-image-class npx honkit build