Add support for SSR runtimes (#9385)

Co-authored-by: Matt Hova <matthova87@gmail.com>
This commit is contained in:
Florian Bischof
2024-07-06 17:17:43 +02:00
committed by GitHub
parent 015cbd18cf
commit 35d79e012b
7 changed files with 44 additions and 10 deletions

View File

@ -95,6 +95,34 @@ jobs:
env:
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
test-ssr:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Restore setup
uses: actions/cache@v4
with:
path: ./*
key: ${{ runner.os }}-${{ github.ref }}-${{ github.sha }}-setup
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Run Node.js SSR script
run: node ./spec/ssr/ssr_node.mjs
- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Run Deno SSR script
run: deno run ./spec/ssr/ssr_deno.js
test:
needs: setup
runs-on: ${{ matrix.os || 'ubuntu-latest' }}