Commit 7d7c237

Anton Golub <antongolub@antongolub.com>
2025-04-11 06:46:54
test: add graaljs smoke test (#1194)
1 parent 79a944b
Changed files (2)
.github
workflows
docs
.github/workflows/test.yml
@@ -213,6 +213,31 @@ jobs:
         if: matrix.node-version >= 22
         run: npm run test:smoke:strip-types
 
+  smoke-graal:
+    needs: build
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        version: [17, 20]
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+      - uses: graalvm/setup-graalvm@7f61f4917e70cddcfee9df637f280f10d5ae3566 #v1
+        with:
+          java-version: ${{ matrix.version }}
+          distribution: 'graalvm-community'
+          components: 'nodejs'
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+      - uses: actions/download-artifact@v4
+        with:
+          name: build
+      - name: smoke tests
+        run: |
+          which node
+          node -v
+          npm run test:smoke:cjs
+
   smoke-ts:
     runs-on: ubuntu-latest
     needs: build
docs/setup.md
@@ -3,9 +3,10 @@
 ## Requirements
 * Linux, macOS, or Windows
 * JavaScript Runtime:
-  * Node.js 12.17.0 or later
-  * Bun 1.0.0 or later
+  * Node.js >= 12.17.0
+  * Bun >= 1.0.0
   * Deno 1.x, 2.x
+  * GraalVM Node.js
 * Some kind of bash or PowerShell
 
 ## Install