From de3ad046e20eff64c479f20e32e577337d6473d1 Mon Sep 17 00:00:00 2001 From: Jainam C Shah Date: Wed, 11 Nov 2020 22:33:04 +0530 Subject: [PATCH] Add lighthouse ci --- .github/workflows/lighthouse.yml | 21 +++++++++++++++++++++ lighthouserc.json | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/lighthouse.yml create mode 100644 lighthouserc.json 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" + } + } +}