Skip to content

Commit

Permalink
NodeJS version bump to v18
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed May 13, 2024
1 parent b1f3910 commit fc92c66
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ jobs:
- name: Set up NodeJS 🔧
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 18

- name: Install dependencies ⚙️
run: |
sudo apt-get install -y libxml2-dev
pip install beautifulsoup4 fpdf2 mistletoe pypdf weasyprint
# Installing dependencies in the root directory works because the md2html.js is a child file:
Expand All @@ -47,6 +49,7 @@ jobs:
node md2html.js index.md > index.html
node md2html.js LeDernierCafeSurLaGauche.md > LeDernierCafeSurLaGauche.html
echo "Rendering 2200_le_jugement_des_dieux"
cd 2200_le_jugement_des_dieux
node ../md2html.js 2200_le_jugement_des_dieux.md > index.html
node ../md2html.js 2200_the_gods_judgement.md > 2200_the_gods_judgement.html
Expand All @@ -55,6 +58,7 @@ jobs:
fi
cd -
echo "Rendering CheatYourOwnAdventure"
cd CheatYourOwnAdventure
node ../md2html.js CheatYourOwnAdventure.md > index.html
cd -
Expand All @@ -63,25 +67,29 @@ jobs:
mv CyberPunk/CyberPunk-FR.pdf $GIT_TAG.pdf
fi
echo "Rendering DungeonHeartHeroesAndSpells"
cd DungeonHeartHeroesAndSpells
node ../md2html.js DungeonHeartHeroesAndSpells.md > index.html
node ../md2html.js --lang=en DungeonHeartHeroesAndSpells_en.md > DungeonHeartHeroesAndSpells_en.html
cd -
echo "Rendering ce-nest-pas-une-place-dhonneur"
cd ce-nest-pas-une-place-dhonneur
node ../md2html.js ce-nest-pas-une-place-dhonneur.md > index.html
if [[ $GIT_TAG =~ ^ce-nest-pas-une-place-dhonneur ]]; then
node ../puppeteer-print.js index.html ../$GIT_TAG.pdf
fi
cd -
echo "Rendering chimera"
cd chimera
node ../md2html.js chimera.md > index.html
if [[ $GIT_TAG =~ ^chimera ]]; then
node ../puppeteer-print.js index.html ../$GIT_TAG.pdf
fi
cd -
echo "Rendering gdav"
cd gdav
node ../md2html.js --title='Amères Victoires & Glorieuses Défaites' gdav.md > index.html
if [[ $GIT_TAG =~ ^gdav- ]]; then
Expand All @@ -91,14 +99,17 @@ jobs:
fi
cd -
echo "Rendering genius-loci"
cd genius-loci
node ../md2html.js genius-loci.md > index.html
cd -
echo "Rendering latour"
cd latour
node ../md2html.js latour.md > index.html
cd -
echo "Rendering LesNonMorts"
cd LesNonMorts
node ../md2html.js --title='Les Non-morts' LesNonMorts.md > index.html
if [[ $GIT_TAG =~ ^LesNonMorts- ]]; then
Expand All @@ -107,6 +118,7 @@ jobs:
fi
cd -
echo "Rendering OriMushi"
cd OriMushi
node ../md2html.js OriMushi.md > index.html
# This line cannot stay in the HTML source file due to lepture/python-livereload PR #259:
Expand All @@ -118,21 +130,25 @@ jobs:
fi
cd -
echo "Rendering Pathfinder"
cd Pathfinder
./build_pdf.py
cd -
cd ParadisPerdu/
echo "Rendering ParadisPerdu"
cd ParadisPerdu
if [[ $GIT_TAG =~ ^ParadisPerdu-v ]]; then
sed -i "s/Version: [0-9].[0-9]/Version: ${GIT_TAG/ParadisPerdu-v/}/" README.md
fi
./adj2pdf.py
cd -
echo "Rendering plus-de-place-en-enfer"
cd plus-de-place-en-enfer
node ../md2html.js plus-de-place-en-enfer.md > index.html
cd -
echo "Rendering RunDieRepeat"
cd RunDieRepeat
node ../md2html.js RunDieRepeat-scenarios-FR.md > RunDieRepeat-scenarios-FR.html
if [[ $GIT_TAG =~ ^RunDieRepeat-scenarios- ]]; then
Expand All @@ -154,7 +170,8 @@ jobs:
fi
cd -
cd Sombre/
echo "Rendering Sombre"
cd Sombre
Terminatrice/Terminatrice-BehindTheDoors.py
Terminatrice/Terminatrice-OutOfReach.py
cd scenario/
Expand All @@ -167,10 +184,12 @@ jobs:
fi
cd ../..
echo "Rendering sous-terre"
cd sous-terre
node ../md2html.js sous-terre.md > index.html
cd -
echo "Rendering VengeanceFatale4D"
cd VengeanceFatale4D
node ../md2html.js VengeanceFatale4D.md > index.html
if [[ $GIT_TAG =~ ^VengeanceFatale4D ]]; then
Expand All @@ -179,6 +198,7 @@ jobs:
fi
cd -
echo "Rendering scavengers"
# Debugging ~~text~~ propert substitution into <s>text</s>:
node ./md2html.js dices.md > dices.html && cat dices.html
cd scavengers
Expand Down
2 changes: 1 addition & 1 deletion puppeteer-print.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const puppeteer = require('puppeteer')
const puppeteer = require('puppeteer');

(async () => {
const url = `file://${path.resolve(process.argv[2])}`
Expand Down

0 comments on commit fc92c66

Please sign in to comment.