Skip to content

fix(deps): update dependency @actions/core to v1.9.1 [security] - autoclosed #78

fix(deps): update dependency @actions/core to v1.9.1 [security] - autoclosed

fix(deps): update dependency @actions/core to v1.9.1 [security] - autoclosed #78

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