From a5bc5f0aa9fe6bc08d41250332fcb4fe556646a7 Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Tue, 8 Mar 2022 18:54:46 +0100 Subject: [PATCH] CI: launch Cypress --- .github/workflows/github-actions.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index e846fe089de..998f68a9541 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -94,6 +94,32 @@ jobs: path: '${{ github.workspace }}/target/*.jar' retention-days: 1 #-------------------------------------------------- + # Cypress + #-------------------------------------------------- + cypress: + needs: [tests-linux] + runs-on: ubuntu-latest + steps: + - name: 'Setup: checkout project' + uses: actions/checkout@v3 + - name: 'Setup: environment' + id: setup + uses: ./.github/actions/setup + - name: 'Artifact: download JAR' + uses: actions/download-artifact@v2 + with: + name: jhlite-jar + path: ./tests-ci/ + - name: 'Init: install Node.js packages' + run: npm ci + - name: 'Test: start application JHipster Lite' + working-directory: ./tests-ci/ + run: | + ./start.sh + - name: 'Test: launch Cypress' + run: npm run e2e:headless + + #-------------------------------------------------- # Tests generated projects #-------------------------------------------------- generation: