From 6ea518c402b4d1967b593da2d6545bce836d4a8a Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Thu, 6 May 2021 21:47:10 +0530 Subject: [PATCH] fix(CI): remove underused lighthouse CI (#42027) --- .github/workflows/lighthouse-ci.yml | 64 ----------------------------- lighthouserc.js | 17 -------- 2 files changed, 81 deletions(-) delete mode 100644 .github/workflows/lighthouse-ci.yml delete mode 100644 lighthouserc.js diff --git a/.github/workflows/lighthouse-ci.yml b/.github/workflows/lighthouse-ci.yml deleted file mode 100644 index 98d786a5114..00000000000 --- a/.github/workflows/lighthouse-ci.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Lighthouse CI -on: - push: - branches: - # Treat the below branches as special case for working on workflows - - actions-** - schedule: - # run this Action every 14 days - - cron: '0 * */14 * *' - workflow_dispatch: - -jobs: - lighthouseci: - name: Lighthouse CI - runs-on: ubuntu-18.04 - services: - mongodb: - image: mongo:3.6.19 - ports: - - 27017:27017 - - strategy: - matrix: - node-version: [14.x] - - steps: - - name: Checkout Source Files - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - - name: Cache node modules - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - - name: Set Environment variables - run: cp sample.env .env - - - name: Install Dependencies - run: | - npm install -g @lhci/cli@0.4 - npm ci - npm run ensure-env - - - name: Seed Database - run: npm run seed - - - name: Build Packages - run: npm run build - - - name: Run Lighthouse CI - run: lhci autorun diff --git a/lighthouserc.js b/lighthouserc.js deleted file mode 100644 index 25fe2f5a372..00000000000 --- a/lighthouserc.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @file - Conifiguration for LightHouse CI. Vist the link below - * for more details -> - * https://github.com/GoogleChrome/lighthouse/blob/master/docs/configuration.md - */ - -module.exports = { - ci: { - collect: { - url: ['http://localhost:8000/'], - startServerCommand: 'npm run start' - }, - upload: { - target: 'temporary-public-storage' - } - } -};