From e6adf7fb96ad1f8ddf51e5141fd9f5336bcb920b Mon Sep 17 00:00:00 2001 From: Gergely Csatari Date: Tue, 23 Jan 2024 16:41:05 +0200 Subject: [PATCH 1/4] Add linkspector config file Signed-off-by: Gergely Csatari --- .github/workflows/check-links-md.yml | 2 +- .linkspector.yml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .linkspector.yml diff --git a/.github/workflows/check-links-md.yml b/.github/workflows/check-links-md.yml index 193ebd6b..b056443d 100644 --- a/.github/workflows/check-links-md.yml +++ b/.github/workflows/check-links-md.yml @@ -17,4 +17,4 @@ jobs: npm install -g @umbrelladocs/linkspector - name: run linkspector run: | - linkspector check \ No newline at end of file + linkspector check -c .linkspector.yml \ No newline at end of file diff --git a/.linkspector.yml b/.linkspector.yml new file mode 100644 index 00000000..e6bb18ad --- /dev/null +++ b/.linkspector.yml @@ -0,0 +1,8 @@ +dirs: + - . +useGitIgnore: true +aliveStatusCodes: + - 200 + - 201 + - 204 + - 304 \ No newline at end of file From 5bc497cd2c6c1ce99f5dd653b38b5fdad99dbb79 Mon Sep 17 00:00:00 2001 From: Gergely Csatari Date: Tue, 23 Jan 2024 16:48:57 +0200 Subject: [PATCH 2/4] Add verification for the linkspector config file Signed-off-by: Gergely Csatari --- .github/workflows/check-links-md.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-links-md.yml b/.github/workflows/check-links-md.yml index b056443d..644c1506 100644 --- a/.github/workflows/check-links-md.yml +++ b/.github/workflows/check-links-md.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install prerequisites run: | curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - &&\ @@ -15,6 +15,9 @@ jobs: - name: Install tools run: | npm install -g @umbrelladocs/linkspector + - name: Verify linkspector config + run: | + cat .linkspector.yml - name: run linkspector run: | linkspector check -c .linkspector.yml \ No newline at end of file From e1cc9281dc0a7359292114623ca0e207e4786bef Mon Sep 17 00:00:00 2001 From: Gergely Csatari Date: Wed, 24 Jan 2024 14:37:03 +0200 Subject: [PATCH 3/4] Ignoring localhost links Signed-off-by: Gergely Csatari --- .linkspector.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.linkspector.yml b/.linkspector.yml index e6bb18ad..04991b87 100644 --- a/.linkspector.yml +++ b/.linkspector.yml @@ -5,4 +5,6 @@ aliveStatusCodes: - 200 - 201 - 204 - - 304 \ No newline at end of file + - 304 + ignorePatterns: + - pattern: "^http://localhost.*$" \ No newline at end of file From 9518c65f3e4d17da3ec3d6d72165af0b9e1d0417 Mon Sep 17 00:00:00 2001 From: Gergely Csatari Date: Wed, 24 Jan 2024 14:41:40 +0200 Subject: [PATCH 4/4] Fixing yaml error Signed-off-by: Gergely Csatari --- .linkspector.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.linkspector.yml b/.linkspector.yml index 04991b87..361fa512 100644 --- a/.linkspector.yml +++ b/.linkspector.yml @@ -6,5 +6,5 @@ aliveStatusCodes: - 201 - 204 - 304 - ignorePatterns: +ignorePatterns: - pattern: "^http://localhost.*$" \ No newline at end of file