Run Cypress tests only on the main repo (#19274)

This commit is contained in:
Jon Koops 2023-03-23 14:41:12 +01:00 committed by GitHub
parent f578f91a0b
commit 595e2e06d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,7 +190,7 @@ jobs:
needs: needs:
- conditional - conditional
- build-keycloak - build-keycloak
if: needs.conditional.outputs.js-ci == 'true' if: needs.conditional.outputs.js-ci == 'true' && github.repository == 'keycloak/keycloak'
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
WORKSPACE: admin-ui WORKSPACE: admin-ui
@ -243,6 +243,7 @@ jobs:
CYPRESS_BASE_URL: http://localhost:8080/admin/ CYPRESS_BASE_URL: http://localhost:8080/admin/
CYPRESS_KEYCLOAK_SERVER: http://localhost:8080 CYPRESS_KEYCLOAK_SERVER: http://localhost:8080
CYPRESS_RECORD_KEY: b8f1d15e-eab8-4ee7-8e44-c6d7cd8fc0eb CYPRESS_RECORD_KEY: b8f1d15e-eab8-4ee7-8e44-c6d7cd8fc0eb
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload server logs - name: Upload server logs
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3