From 9ecefa56dbbb6042b1adbfdad9d9deade91011b3 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 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..930e88f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +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: Build library + run: make + - name: Runs tests + run: yarn node --experimental-vm-modules $(yarn bin jest)