mirror of
https://github.com/sethcottle/littlelink.git
synced 2025-04-18 14:35:55 -04:00
Create contrast-check.yml
This commit is contained in:
parent
3e71e529e2
commit
3e580dbca6
32
.github/workflows/contrast-check.yml
vendored
Normal file
32
.github/workflows/contrast-check.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user