From e9674c57a46eee9b5109eea983630b06033a2429 Mon Sep 17 00:00:00 2001 From: Sarah Proctor Date: Wed, 8 May 2024 11:51:45 -0700 Subject: [PATCH] :construction_worker: adds testing workflow for GitHub Action --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..20ebb2b --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,27 @@ +name: Web Tests + +on: push + +env: + NODE_OPTIONS: --max_old_space_size=4096 + +jobs: + web_test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "21" + + - name: Restore workspace cache + uses: actions/cache@v3 + with: + path: "**/node_modules" + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + + - name: Install dependencies + run: yarn + + - name: Run unit tests + run: yarn test \ No newline at end of file