From e0283a82a9e46a8b9ee8e2e32a0c8e799b863e4f Mon Sep 17 00:00:00 2001 From: Peter Makowski Date: Tue, 23 Jan 2024 16:32:24 +0100 Subject: [PATCH] ci: run cypress on pr (#5302) --- .github/workflows/cypress.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 40c29b23a2..d1df680d88 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -5,6 +5,8 @@ on: - main - "3.*" - "*cypress*" + pull_request: + types: [opened, synchronize, reopened] jobs: cypress: @@ -40,6 +42,10 @@ jobs: export API_KEY=`sudo maas apikey --username=admin` maas login admin http://localhost:5240/MAAS $API_KEY maas admin users create username=user password=test email=fake-user@example.org is_superuser=0 + - name: Wait for MAAS boot resources + if: matrix.groups == 'with-users' + shell: bash + run: while [ $(maas admin boot-resources is-importing | cat) == "true" ]; do sleep 10; done; echo "syncing finished" - name: Run Cypress tests uses: cypress-io/github-action@v4 with: