37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: Community Health & Accessibilité
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
community:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Vérifier code of conduct, issue/pr templates
|
|
run: |
|
|
mkdir -p docs
|
|
if [ -f tools/community/check_health.py ]; then
|
|
python tools/community/check_health.py > docs/community-health-report.json
|
|
else
|
|
echo '{"status":"skipped","reason":"missing tools/community/check_health.py"}' > docs/community-health-report.json
|
|
fi
|
|
- name: Scanner accessibilité doc/UI
|
|
run: |
|
|
mkdir -p docs
|
|
if [ -f tools/accessibility/a11y_linter.py ]; then
|
|
python tools/accessibility/a11y_linter.py docs/ > docs/accessibility-report.json
|
|
else
|
|
echo '{"status":"skipped","reason":"missing tools/accessibility/a11y_linter.py"}' > docs/accessibility-report.json
|
|
fi
|
|
- name: Upload reports
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: community-accessibility
|
|
path: |
|
|
docs/community-health-report.json
|
|
docs/accessibility-report.json
|