Skip to content

Commit

Permalink
move lighthouse pr check into separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Trombach committed Jan 2, 2025
1 parent d4d5935 commit f4d8d41
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
17 changes: 17 additions & 0 deletions .github/workflows/deployment-ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f4d8d41

Please sign in to comment.