Skip to content

fix(lhci): add custom userAgent #105

fix(lhci): add custom userAgent

fix(lhci): add custom userAgent #105

Workflow file for this run

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