From 34b0ba081e439e4db1e1157fff18f6b94e70ef1d Mon Sep 17 00:00:00 2001 From: ddalvi Date: Tue, 18 Jun 2024 09:58:07 -0400 Subject: [PATCH] Migrate Frontend tests to a GHA Workflow --- .github/workflows/frontend.yml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/frontend.yml diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 000000000000..2d17b1d1addc --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,35 @@ +name: Frontend Tests + +on: + push: + branches: + - master + pull_request: + branches: + - master + paths: + - 'frontend/**' + workflow_dispatch: + +jobs: + frontend-tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '14' + + - name: Clean npm cache + run: npm cache clean --force + + - name: Install dependencies + run: cd ./frontend && npm ci + + - name: Run Frontend Tests + run: cd ./frontend && npm run test:ci + \ No newline at end of file