Skip to content

Commit

Permalink
add MAAS_UI_URL env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
petermakowski committed Jan 22, 2024
1 parent bf8803d commit 7e376e7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-22.04
env:
MAAS_URL: http://localhost:5240
MAAS_UI_URL: http://localhost:8400
steps:
- uses: actions/checkout@main
- name: Get branch name
Expand All @@ -28,11 +29,11 @@ jobs:
- name: Run Cypress tests without a user
uses: cypress-io/github-action@v4
with:
config: baseUrl="http://localhost:8400/",pageLoadTimeout=100000
config: baseUrl=${{env.MAAS_UI_URL}},pageLoadTimeout=100000
install: false
start: yarn start
spec: "cypress/e2e/no-users/**/*.spec.ts"
wait-on: "http://localhost:8400/MAAS/r/machines"
wait-on: "${{env.MAAS_UI_URL}}/MAAS/r/machines"
- name: Create MAAS admin
run: sudo maas createadmin --username=admin --password=test --email=fake@example.org
- name: Create MAAS non-admin user
Expand All @@ -45,10 +46,10 @@ jobs:
- name: Run Cypress tests with a user
uses: cypress-io/github-action@v4
with:
config: baseUrl=${{env.MAAS_URL}},pageLoadTimeout=100000
config: baseUrl=${{env.MAAS_UI_URL}},pageLoadTimeout=100000
install: false
spec: "cypress/e2e/with-users/**/*.spec.ts"
wait-on: "${{env.MAAS_URL}}/MAAS/r/machines"
wait-on: "${{env.MAAS_UI_URL}}/MAAS/r/machines"
- uses: actions/upload-artifact@v4
if: failure()
with:
Expand Down

0 comments on commit 7e376e7

Please sign in to comment.