From c0c2fdc6e716f94a1044050650c5027c5f13ab0c Mon Sep 17 00:00:00 2001 From: Ryan Goulding Date: Thu, 19 Oct 2023 13:40:17 -0700 Subject: [PATCH] Run unit tests using GitHub Actions on push/pull_request Signed-off-by: Ryan Goulding --- .github/workflows/main.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 00000000..57e126fd --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,21 @@ +name: unit tests + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: yarn install + + - name: Run unit tests + run: yarn test