Skip to content

Commit

Permalink
ci: run cypress on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
petermakowski committed Jan 23, 2024
1 parent 1f3c7c9 commit 9f18fde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- main
- "3.*"
- "*cypress*"
pull_request:
types: [opened, synchronize, reopened]

jobs:
cypress:
Expand Down Expand Up @@ -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: startsWith(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:
Expand Down

0 comments on commit 9f18fde

Please sign in to comment.