Skip to content

Commit

Permalink
Add test for ssr compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Falke-Design committed Jul 3, 2024
1 parent ef5200e commit 9372845
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,22 @@ jobs:
env:
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}

test-ssr:
needs: setup
runs-on: ubuntu-latest

steps:
- 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' }}
Expand Down
2 changes: 2 additions & 0 deletions spec/ssr/ssr_deno.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import L from '../../dist/leaflet-src.esm.js';
console.log(L.version);
2 changes: 2 additions & 0 deletions spec/ssr/ssr_node.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import L from '../../dist/leaflet-src.js';
console.log(L.version);

0 comments on commit 9372845

Please sign in to comment.