Skip to content

Commit

Permalink
Update axe.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet authored Apr 3, 2024
1 parent f245282 commit 711e8cf
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/axe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: "*"

permissions:
pull-requests: write

jobs:
axe:
runs-on: ubuntu-latest
Expand All @@ -15,13 +18,26 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18

- name: Run axe
id: axe
run: |
npm install -g @axe-core/cli
echo "AXE_OUTPUT=$(axe https://beta.gouv.fr)" >> $GITHUB_OUTPUT
AXE_OUTPUT=$(axe https://beta.gouv.fr)
echo "$AXE_OUTPUT" >> $GITHUB_OUTPUT
- name: Read result
if: success() || failure()
run: |
echo "$AXE_OUTPUT"
- name: Post result
if: success() || failure()
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
### Axe result for ${{ github.sha }} to <https://beta.gouv.fr>
$AXE_OUTPUT

0 comments on commit 711e8cf

Please sign in to comment.