From d733176320c37c7c33093cd557c4b4a1d4190de4 Mon Sep 17 00:00:00 2001 From: Byron Batteson Date: Sat, 10 Jun 2023 18:54:44 +0200 Subject: [PATCH] Add build action to run tests --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9acfd5a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build +on: + push: + branches: [main] + pull_request: + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v2 + with: + fetch-depth: '0' + - name: Install + uses: jetli/wasm-pack-action@v0.3.0 + with: + version: 'latest' + - name: Build + run: | + rustup default nightly + wasm-pack build --release + - name: Test + run: wasm-pack test --headless --firefox