From 0205f05319aff0abb226d7c752778b79530a9dab Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 24 Jun 2025 12:09:44 -0600 Subject: [PATCH] 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. --- .github/workflows/js-artifacts.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/js-artifacts.yml b/.github/workflows/js-artifacts.yml index 3b6c12ce907..c1fecd46306 100644 --- a/.github/workflows/js-artifacts.yml +++ b/.github/workflows/js-artifacts.yml @@ -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: