From f4d8d41fa87700feb681d0fc91c37992de4a45c5 Mon Sep 17 00:00:00 2001 From: Lukas Trombach Date: Thu, 2 Jan 2025 18:59:28 +0100 Subject: [PATCH] move lighthouse pr check into separate workflow --- .github/workflows/ci.yml | 15 --------------- .github/workflows/deployment-ci.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/deployment-ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d501c53..404386f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,9 @@ on: push: branches: - main - deployment_status: jobs: Typescript: - if: github.event_name == 'pull_request' || github.event_name == 'push' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -27,7 +25,6 @@ jobs: run: pnpm ts:check Biome: - if: github.event_name == 'pull_request' || github.event_name == 'push' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -41,15 +38,3 @@ jobs: - run: pnpm install - name: Run biome checks run: pnpm biome:ci - - Lighthouse: - if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' - strategy: - fail-fast: false - matrix: - route: ["", "/projects", "/contact"] - uses: ./.github/workflows/lhci.yml - with: - url: ${{ github.event.deployment_status.environment_url }}${{ matrix.route}} - config-path: ./lighthouserc.Preview.json - secrets: inherit diff --git a/.github/workflows/deployment-ci.yml b/.github/workflows/deployment-ci.yml new file mode 100644 index 00000000..886e6f84 --- /dev/null +++ b/.github/workflows/deployment-ci.yml @@ -0,0 +1,17 @@ +name: Deployment CI + +on: + deployment_status: + +jobs: + Lighthouse: + if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' + strategy: + fail-fast: false + matrix: + route: ["", "/projects", "/contact"] + uses: ./.github/workflows/lhci.yml + with: + url: ${{ github.event.deployment_status.environment_url }}${{ matrix.route}} + config-path: ./lighthouserc.Preview.json + secrets: inherit