From c9c50db462654126be97d5c803cf48025467b7d0 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 11 Mar 2021 08:22:54 +0000 Subject: [PATCH] split it all out again --- .github/workflows/cypress.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 1c494f131..ccd9e6802 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -7,7 +7,7 @@ on: branches: [ feature/ui-automation ] jobs: - automation-tests: + install: runs-on: ubuntu-latest @@ -34,19 +34,44 @@ jobs: - name: Install Automation Deps run: yarn --cwd ./tests install + cypress-tests: + + runs-on: ubuntu-latest + needs: install + strategy: + fail-fast: false + martix: + containers: [1] + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - uses: actions/cache@v2 + with: + path: | + '/home/runner/.cache/Cypress' + '/home/runner/.cache/Cypress' + key: ${{ runner.os }}-modules-${{ hashFiles('**/**.lock') }} + - name: Start Backend run: | nohup dotnet run -p ./src/Ombi -- --host http://*:3577 & + - name: Start Frontend run: | nohup yarn --cwd ./src/Ombi/ClientApp start & + - name: Cypress Tests uses: cypress-io/github-action@v2.8.2 with: + install: false record: true browser: chrome headless: true working-directory: tests + group: "UI - Chrome", + parallel: true wait-on: http://localhost:3577/ # 7 minutes wait-on-timeout: 420