From dfd461518faac1319acf4e58fdb4494d2b59c82e Mon Sep 17 00:00:00 2001 From: steven Date: Sat, 1 Oct 2022 22:57:32 +0800 Subject: [PATCH] chore: add jest github action --- .github/workflows/tests.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a5227cb..931ca6ec 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,6 +43,21 @@ jobs: run: yarn lint working-directory: web + jest-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "16" + cache: yarn + cache-dependency-path: "web/yarn.lock" + - run: yarn + working-directory: web + - name: Run jest + run: yarn test + working-directory: web + frontend-build: runs-on: ubuntu-latest steps: