Skip to content

Commit

Permalink
Improve Code Checker workflow (#66)
Browse files Browse the repository at this point in the history
* Run workflow weekly

* Expect it to fail, silence failure
  • Loading branch information
Jym77 authored Nov 25, 2024
1 parent c2e6d98 commit 608e0b0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/code-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@

# See https://alfa.siteimprove.com/code-checker

# Note that even if the code checker step by itself fails, the full workflow doesn't.
# This reduces noise, and ensure that other problems in the workflow will still be reported.

name: Accessibility Code Checker (this workflow *should* fail!)
on:
push:
branches:
- main
workflow_dispatch:
schedule:
# Run weekly, on Monday morning at 05:00 UTC.
# Problems are reported to the latest editor of the script,
# currently https://github.com/Jym77
- cron: '0 5 * * 1'

jobs:
build:
name: Accessibility Code Checker (this workflow *should* fail!)
name: Accessibility Code Checker
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -41,3 +49,6 @@ jobs:
env:
SI_USER_EMAIL: ${{ secrets.SI_USER_EMAIL }}
SI_API_KEY: ${{ secrets.SI_API_KEY }}
- name: Expect failure of previous step
if: ${{ failure() }}
run: echo "Code Checker failed as expected"

0 comments on commit 608e0b0

Please sign in to comment.