chore(deps): update actions/checkout action to v4 #170
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: ["*"] | |
paths: | |
- declaration-a11y | |
- .github/workflows/declaration-a11y.yml | |
pull_request: | |
branches: ["*"] | |
paths: | |
- declaration-a11y | |
- .github/workflows/declaration-a11y.yml | |
name: Test declaration-a11y | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: Test | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
cd declaration-a11y | |
yarn | |
yarn test | |
tests-action: | |
runs-on: ubuntu-latest | |
name: declaration-a11y action | |
steps: | |
- uses: actions/checkout@v4 | |
- shell: bash | |
run: | | |
ls -la | |
- uses: ./declaration-a11y | |
with: | |
url: https://labonnealternance.apprentissage.beta.gouv.fr | |
output: a11y.json | |
- shell: bash | |
run: | | |
ls -la | |
cat a11y.json | |
[[ $(cat a11y.json | jq -rc '.mention') == "Accessibilité : non conforme" ]] || (echo "Error: Should mention Accessibilité : non conforme" && exit 1) |