CI: Add a sanity check to the JS artifacts workflow

This workflow has been broken in the past, so let's add a sanity check
to ensure that the REPL works.
This commit is contained in:
Andrew Kaster 2025-06-24 12:09:44 -06:00 committed by Andrew Kaster
commit 0205f05319
Notes: github-actions[bot] 2025-06-24 19:30:04 +00:00

View file

@ -94,6 +94,17 @@ jobs:
vcpkg_cache_path: ${{ github.workspace }}/Build/caches/vcpkg-binary-cache
vcpkg_cache_primary_key: ${{ steps.cache-restore.outputs.vcpkg_cache_primary_key }}
- name: Sanity-check the js repl
shell: bash
run: |
set -e
tar -xvzf Build/distribution/ladybird-js-${{ matrix.package_type }}.tar.gz
./bin/js -c "console.log('Hello, World\!');" > out.txt
if ! grep -q "\"Hello, World\!\"" out.txt; then
echo "Sanity check failed: \"Hello, World\!\" not found in output."
exit 1
fi
- name: Upload js package
uses: actions/upload-artifact@v4
with: