1
0

Use firmware-config.js as driver for tests

This commit is contained in:
2026-03-26 12:08:47 +01:00
parent eb938b7d89
commit b14a66ea3d
7 changed files with 189 additions and 123 deletions

View File

@@ -69,9 +69,15 @@ jobs:
if: steps.check-e2e.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'
run: |
mkdir -p tests/cached_assets
echo "Downloading firmware..."
curl -fL --progress-bar -o tests/cached_assets/kobo-update-4.45.23646.zip \
https://ereaderfiles.kobo.com/firmwares/kobo13/Mar2026/kobo-update-4.45.23646.zip
node -e "console.log(JSON.stringify(require('./tests/firmware-config')))" | jq -c '.[]' | while IFS= read -r entry; do
version=$(echo "$entry" | jq -r '.version')
url=$(echo "$entry" | jq -r '.url')
file="tests/cached_assets/kobo-update-${version}.zip"
if [ ! -f "$file" ]; then
echo "Downloading firmware $version..."
curl -fL --progress-bar -o "$file" "$url"
fi
done
- name: Full integration test (WASM)
if: steps.check-e2e.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'