Skip to content

Commit

Permalink
ci: move lighthouse job to main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Jul 5, 2024
1 parent 90bde80 commit 3f0b89d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 47 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,36 @@ jobs:
with:
verbose: true

lighthouse-test:
name: Tests / Lighthouse CI
runs-on: ubuntu-latest
needs:
- compile
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "lts/*" # latest lts
check-latest: true
cache: "yarn"
- uses: ./.github/gradle-action
- run: ./gradlew classes
- run: yarn install
- name: Run Lighthouse CI
run: |
npx lhci collect
npx lhci assert
- name: Upload Lighthouse CI results
uses: actions/upload-artifact@v4
if: always()
with:
name: lighthouse-ci-results-${{ github.run_id }}-${{ github.sha }}
path: .lighthouseci/
retention-days: 30

test-docker-image:
name: Tests / docker image
runs-on: ubuntu-latest
Expand Down Expand Up @@ -279,6 +309,7 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
needs:
- test
- lighthouse-test
- test-docker-image
- dependency-review
steps:
Expand All @@ -290,6 +321,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- test
- lighthouse-test
- test-docker-image
# This job also has an output that can be used by downstream jobs.
# https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/lighthouse.yml

This file was deleted.

0 comments on commit 3f0b89d

Please sign in to comment.