mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-21 23:26:12 +00:00
Add support for SSR runtimes (#9385)
Co-authored-by: Matt Hova <matthova87@gmail.com>
This commit is contained in:
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
@ -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' }}
|
||||
|
Reference in New Issue
Block a user