mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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:
parent
6cfb98fa7d
commit
0205f05319
11
.github/workflows/js-artifacts.yml
vendored
11
.github/workflows/js-artifacts.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user