Skip to content

Ensure the built files have been rebuilt and committed #103

Ensure the built files have been rebuilt and committed

Ensure the built files have been rebuilt and committed #103

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 and run tests
run: ./build-and-test
- 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