Skip to content

Commit

Permalink
wait for MAAS boot resources
Browse files Browse the repository at this point in the history
  • Loading branch information
petermakowski committed Jan 23, 2024
1 parent 6e0af88 commit 8fd1802
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/sitespeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
maasdb-dump-url: https://github.com/canonical/maas-ui-testing/raw/main/db/maasdb-22.04-master-1000.dump
- name: Create MAAS admin
run: sudo maas createadmin --username=admin --password=test --email=fake@example.org
- name: Login to MAAS
if: startsWith(matrix.groups, 'with-users')
run: |
export API_KEY=`sudo maas apikey --username=admin`
maas login admin http://localhost:5240/MAAS $API_KEY
- 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 sitespeed.io tests
run: yarn sitespeed:ci --browsertime.domain=${{env.MAAS_DOMAIN}}
- name: Upload results
Expand Down

0 comments on commit 8fd1802

Please sign in to comment.