From a768ef52c97d2f7d483ba6255c8e17960c23ee08 Mon Sep 17 00:00:00 2001 From: ddalvi Date: Mon, 1 Jul 2024 11:51:38 -0400 Subject: [PATCH] test: Migrate KFP Frontend test to GHA --- .github/workflows/frontend.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 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..fccf92cc9cc7 --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,36 @@ +name: Frontend Tests + +on: + push: + branches: + - master + pull_request: + branches: + - master + paths: + - 'frontend/**' + - '.github/workflows/frontend.yml' + 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 +