Skip to content

feat: add an entrypoint which embeds the wasm instead of requiring it to be fetched over the network when deployed as a Netlify Edge Function #100

feat: add an entrypoint which embeds the wasm instead of requiring it to be fetched over the network when deployed as a Netlify Edge Function

feat: add an entrypoint which embeds the wasm instead of requiring it to be fetched over the network when deployed as a Netlify Edge Function #100

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.44.4
- name: Rebuild files
run: deno run --allow-read --allow-run --allow-env --allow-write ./scripts/build.ts
- name: Check if files need to be rebuilt and committed
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "The files need to be rebuilt and committed.";
echo "$( git status --porcelain)"
exit 1;
fi
- name: Check formatting
run: deno fmt src/ --ignore=src/vendor --check
- name: Test Deno
run: deno test --allow-all