Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 63 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@ on:
pull_request:
branches: [ "main" ]

permissions: {}
permissions:
contents: read
pull-requests: write
Comment thread
Copilot marked this conversation as resolved.

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Start Measurement
uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
with:
task: start-measurement
continue-on-error: true

- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1

Expand All @@ -29,10 +37,30 @@ jobs:
path: public/
retention-days: 1

- name: Get measurement
uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
with:
task: get-measurement
label: 'build'
continue-on-error: true

- name: Show Energy Results
uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
with:
task: display-results
pr-comment: true
continue-on-error: true

axe-core:
needs: build
runs-on: ubuntu-latest
steps:
- name: Start Measurement
uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
with:
task: start-measurement
continue-on-error: true

- name: Download build artifact
uses: actions/download-artifact@v8
with:
Expand Down Expand Up @@ -60,10 +88,30 @@ jobs:
if: always()
run: echo "Accessibility testing completed. Check logs above for any violations."

- name: Get measurement
uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
with:
task: get-measurement
label: 'axe-core'
continue-on-error: true

- name: Show Energy Results
uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
with:
task: display-results
pr-comment: true
continue-on-error: true

lighthouse:
needs: build
runs-on: ubuntu-latest
steps:
- name: Start Measurement
uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
with:
task: start-measurement
continue-on-error: true

- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1

Expand All @@ -82,3 +130,17 @@ jobs:
run: bunx @lhci/cli@0.15.x autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}

- name: Get measurement
uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
with:
task: get-measurement
label: 'lighthouse'
continue-on-error: true

- name: Show Energy Results
uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
with:
task: display-results
pr-comment: true
continue-on-error: true
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1

- name: Set up uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9
with:
python-version: "3.14"
activate-environment: true
Expand Down
Loading