diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml new file mode 100644 index 000000000000..9d8d812cce2b --- /dev/null +++ b/.github/workflows/lighthouse.yml @@ -0,0 +1,21 @@ +name: Lighthouse + +on: + # Trigger the workflow on push or pull request, + # but only for the master branch + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + lighthouseci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + - run: yarn install && npm install -g @lhci/cli@0.6.x + - run: yarn build + - run: lhci autorun diff --git a/lighthouserc.json b/lighthouserc.json new file mode 100644 index 000000000000..54a30fb62492 --- /dev/null +++ b/lighthouserc.json @@ -0,0 +1,7 @@ +{ + "ci": { + "collect": { + "staticDistDir": "./website/build" + } + } +}