fix(lhci): add custom userAgent #101
Workflow file for this run
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
name: "tests check-url" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
# test action works running from the graph | |
action: | |
name: Test check-url | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Locally | |
uses: actions/checkout@v4 | |
- name: checks https://beta.gouv.fr/stats | |
uses: ./check-url | |
with: | |
url: https://beta.gouv.fr/stats | |
output: stats.json | |
- name: test output | |
run: | | |
echo $(cat stats.json) | |
grade=$(echo $(cat stats.json | jq '.grade')) | |
echo "grade=$grade" | |
if [[ -z "$grade" || "$grade" != "\"A\"" ]]; then | |
exit 1 | |
fi | |
- name: checks https://beta.gouv.fr/invalid | |
uses: ./check-url | |
with: | |
url: https://beta.gouv.fr/invalid | |
output: stats3.json | |
- name: test output | |
run: | | |
echo $(cat stats3.json) | |
grade=$(echo $(cat stats3.json | jq '.grade')) | |
echo "grade=$grade" | |
if [[ -z "$grade" || "$grade" != "\"F\"" ]]; then | |
exit 1 | |
fi | |
- name: checks https://mon-entreprise.urssaf.fr/stats | |
uses: ./check-url | |
with: | |
url: https://mon-entreprise.urssaf.fr/stats | |
output: stats2.json | |
- name: test output | |
run: | | |
echo $(cat stats2.json) | |
grade=$(echo $(cat stats2.json | jq '.grade')) | |
echo "grade=$grade" | |
if [[ -z "$grade" || "$grade" != "\"A\"" ]]; then | |
exit 1 | |
fi |