From 32a55fb7d1ed52537b23b11abd5166d051ce58b6 Mon Sep 17 00:00:00 2001 From: Alexandre Rousseau Date: Thu, 28 Nov 2024 10:07:52 +0100 Subject: [PATCH] feat(ci): run frontend tests - WF-72 --- .github/workflows/ci-ui-test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci-ui-test.yml diff --git a/.github/workflows/ci-ui-test.yml b/.github/workflows/ci-ui-test.yml new file mode 100644 index 000000000..434aa1015 --- /dev/null +++ b/.github/workflows/ci-ui-test.yml @@ -0,0 +1,26 @@ +name: ci-ui-test +on: + push: + branches: [dev, master] + paths: ["src/ui/**"] + pull_request: + branches: [dev, master] + paths: ["src/ui/**"] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.x" + cache: npm + + - name: Install dependencies + run: npm ci -w writer-ui + + - name: Run tests + run: npm test -w writer-ui