mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +00: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
Notes:
github-actions[bot]
2025-06-24 19:30:04 +00:00
Author: https://github.com/ADKaster
Commit: 0205f05319
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5203
Reviewed-by: https://github.com/CanadaHonk
Reviewed-by: https://github.com/gmta
1 changed files with 11 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue