From 33e56da0d3e6adad89521661b96f82c0adac9d9d Mon Sep 17 00:00:00 2001 From: ismay Date: Tue, 9 Apr 2024 15:37:01 +0200 Subject: [PATCH] ci: update workflow to use dockerized backend --- .github/workflows/dhis2-verify-app.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dhis2-verify-app.yml b/.github/workflows/dhis2-verify-app.yml index 0d01652f..c58d5935 100644 --- a/.github/workflows/dhis2-verify-app.yml +++ b/.github/workflows/dhis2-verify-app.yml @@ -89,18 +89,19 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: End-to-End tests - uses: cypress-io/github-action@v2 + uses: cypress-io/github-action@v5 with: - start: yarn start:nobrowser - wait-on: 'http://localhost:3000' - wait-on-timeout: 300 + start: npx --yes @dhis2/cli-cluster up 2.41 --channel dev --db-version 2.41 --seed, yarn start:nobrowser + wait-on: 'http://localhost:8080/dhis-web-commons/security/login.action, http://localhost:3000' + wait-on-timeout: 600 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CYPRESS_dhis2BaseUrl: https://debug.dhis2.org/dev - CYPRESS_dhis2ApiVersion: 42 - CYPRESS_networkMode: stub + CYPRESS_LOGIN_NAME: ${{ secrets.CYPRESS_LOGIN_NAME }} + CYPRESS_LOGIN_PASSWORD: ${{ secrets.CYPRESS_LOGIN_PASSWORD }} + CYPRESS_LOGIN_SERVER: http://localhost:8080 + - run: npx --yes @dhis2/cli-cluster down 2.41 release: runs-on: ubuntu-latest