From acd8e220c18ccf5662bec13540d495991b4026f0 Mon Sep 17 00:00:00 2001 From: MakiniKayiraGDS Date: Mon, 30 Sep 2024 14:46:13 +0100 Subject: [PATCH] Update lighthouse-ci.yaml file --- .github/workflows/ci.yaml | 24 ------------------------ .github/workflows/lighthouse-ci.yaml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/lighthouse-ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index c0e22b8..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: CI -on: [push] -jobs: - lhci: - name: Lighthouse - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Use Node.js 16.x - uses: actions/setup-node@v3 - with: - node-version: 16.x - - name: npm install, build - run: | - npm install - npm run build - - name: run Lighthouse CI - run: | - npm install -g @lhci/cli@0.14.x - lhci autorun - env: - LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/lighthouse-ci.yaml b/.github/workflows/lighthouse-ci.yaml new file mode 100644 index 0000000..eeeeedf --- /dev/null +++ b/.github/workflows/lighthouse-ci.yaml @@ -0,0 +1,13 @@ +name: CI +on: [push] +jobs: + lighthouseci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + - run: npm install && npm install -g @lhci/cli@0.6.x + - run: npm run build + - run: lhci autorun + env: + LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} \ No newline at end of file