Ensure the built files have been rebuilt and committed #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |