From e21fb744d6135f196d86178f46537f1ee650c222 Mon Sep 17 00:00:00 2001 From: Lukas Fittl Date: Wed, 4 Sep 2024 00:20:18 -0700 Subject: [PATCH] Add GH action to build library and run test suite --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dd30732 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI +on: + push: + branches: [ master ] + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + submodules: true + - name: Set up node environment + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'yarn' + - name: Set up emscripten + uses: mymindstorm/setup-emsdk@v14 + - name: Build library + run: make + - name: Runs tests + run: yarn node --experimental-vm-modules $(yarn bin jest)