spaship / operator

SPAship Operator
https://spaship.io/operator/
Apache License 2.0
1 stars 2 forks source link

Lighthouse CI Integration #40

Open lkrzyzanek opened 3 years ago

lkrzyzanek commented 3 years ago

Integrate SPAship Operator and Lighthouse CI.

These operator events (#59) could be integrated/mapped with LH CI:

  1. Website added -> lhci wizard
  2. Website updated -> lhci autorun

ad 1. lhci wizard is REST API call like

curl --location --request POST 'http://lighthouse-lhci-server.int.open.paas.redhat.com/v1/projects' \
--header 'Content-Type: application/json' \
--header 'Cookie: 7014768c86ae33f0cf872d67d3f8204a=6fc4520263fd67b4f905002805d87be7' \
--data-raw '{
    "name": "One Platform",
    "externalUrl": "https://github.com/1-Platform/one-platform",
    "baseBranch": "master",
    "slug": ""
  }'

SPAship manager could also integrate with Lighthouse by showing scores for individual websites and at least provide a link to the Lighthouse UI. TODO: Is there a REST API for it as well ?