From bc7c662431ddbfc97a2eeecd6b49a8f0974c3b09 Mon Sep 17 00:00:00 2001 From: "@s.roertgen" Date: Fri, 1 Sep 2023 12:53:51 +0200 Subject: [PATCH] reenabling e2e test. See if it works now I improved testing and also the components. Maybe there was something I overlooked before. Still don't know why it works locally, but fails in the action. Let's see if this is still the case. --- .github/workflows/main.yml | 46 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3ff8088..01ad71c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,29 +48,29 @@ jobs: - run: npm run test # disables because the action fails on github action but tests works locally - # e2e: - # runs-on: ubuntu-latest - # strategy: - # matrix: - # node-version: [18.x] - # steps: - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Use Node.js ${{ matrix.node-version }} - # uses: actions/setup-node@v3 - # with: - # node-version: ${{ matrix.node-version }} - # - run: echo Using node version $(node --version) - # - run: echo Using npm version $(npm --version) - # - run: cypress/prepare-cypress-test.sh - # - name: Cypress run - # uses: cypress-io/github-action@v5 - # with: - # browser: chrome - # headed: true - # start: npm run develop -- -p 8000 - # wait-on: http://localhost:8000/index.de.html - # config: baseUrl=http://localhost:8000 + e2e: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x] + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: echo Using node version $(node --version) + - run: echo Using npm version $(npm --version) + - run: cypress/prepare-cypress-test.sh + - name: Cypress run + uses: cypress-io/github-action@v5 + with: + browser: chrome + headed: true + start: npm run develop -- -p 8000 + wait-on: http://localhost:8000/index.de.html + config: baseUrl=http://localhost:8000 docker: needs: [build]