Create contrast-check.yml

This commit is contained in:
Seth Cottle 2025-03-17 18:43:22 -04:00 committed by GitHub
parent 3e71e529e2
commit 3e580dbca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

32
.github/workflows/contrast-check.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: "Contrast Check"
on:
pull_request:
paths:
- 'css/brands.css'
push:
paths:
- 'css/brands.css'
workflow_dispatch:
jobs:
contrast-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch main branch
run: git fetch origin main:main
- name: Debug information
run: |
echo "Current branch: $(git branch --show-current)"
echo "Modified files in PR:"
git diff --name-only origin/main
- name: Run Contrast Check
run: |
chmod +x ./scripts/audit-contrast.sh
./scripts/audit-contrast.sh