From 69ec8a9cd19057f318c7218667201802f3a9a4b1 Mon Sep 17 00:00:00 2001 From: Aaron Tay <110143162+Kb-Tay@users.noreply.github.com> Date: Tue, 9 Sep 2025 11:43:36 +0800 Subject: [PATCH] Add GitHub Actions workflow for running tests --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..da1aabf6e6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Run Tests + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Set up Node.js + uses: actions/setup-node@v5 + with: + node-version: '24' + + - name: Install dependencies + run: npm install + + - name: Install client dependencies + run: | + cd client + npm install + + - name: Run Jest test + run: npm run test:frontend +