Skip to content

temporarily enable on current branch #792

temporarily enable on current branch

temporarily enable on current branch #792

Workflow file for this run

name: sitespeed.io
on:
push:
branches:
- main
- "3.*"
- ci-sitespeed-setup-maas-github-action
jobs:
run-sitespeed:
name: Run sitespeed.io
runs-on: ubuntu-22.04
env:
MAAS_DOMAIN: localhost
steps:
- uses: actions/checkout@main
- name: Setup MAAS
uses: canonical/setup-maas@main
with:
maas-url: "http://${{env.MAAS_DOMAIN}}:5240/MAAS"
use-maasdb-dump: true
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: Wait for MAAS
uses: nev7n/wait_for_response@v1
with:
url: "http://${{env.MAAS_DOMAIN}}:5240/MAAS/r"
responseCode: 200
timeout: 200000
interval: 500
- name: Run sitespeed.io tests
run: yarn sitespeed:ci --browsertime.domain=${{env.MAAS_DOMAIN}}
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: sitespeed.io-results
path: sitespeed.io/results
- name: Create issue on failure
if: failure()
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
WORKFLOW: ${{ github.workflow }}
with:
filename: .github/ISSUE_TEMPLATE/ci-failure.md
update_existing: true