From 17b226e40689e2cd694b936ce7d091260af4e791 Mon Sep 17 00:00:00 2001 From: Mathis Marcotte Date: Fri, 8 Sep 2023 12:57:01 +0000 Subject: [PATCH] updated workflow --- .../workflows/centraldb_frontend_tests.yaml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/centraldb_frontend_tests.yaml b/.github/workflows/centraldb_frontend_tests.yaml index 8f60796f9cb..3cbff09e643 100644 --- a/.github/workflows/centraldb_frontend_tests.yaml +++ b/.github/workflows/centraldb_frontend_tests.yaml @@ -32,20 +32,20 @@ jobs: npm i --legacy-peer-deps CHROMIUM_BIN=$(which chrome) npm run test cypress-run: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - # Install NPM dependencies, cache them correctly - # and run all Cypress tests - - name: Cypress run - uses: cypress-io/github-action@v6 + - name: Setup node version to 16 + uses: actions/setup-node@v3 with: - working-directory: components/centraldashboard - install-command: npm i --legacy-peer-deps - build: npm run build - start: npm start - wait-on: http://localhost:8080 + node-version: 16 + - name: Serve UI & run Cypress tests in Chrome and Firefox + run: | + cd components/centraldashboard + npm i --legacy-peer-deps + npm run serve & npx wait-on http://localhost:8080 + npm run ui-test-ci-all # run-ui-tests: # name: UI tests with Cypress # runs-on: ubuntu-latest