ci/cd: fix quality checks not running on all OSes

Previously, quality checks were mistakenly configured to run only on
Ubuntu.

This commit modifies the CI/CD workflow to use the matrix strategy,
allowing the quality checks to be executed on macOS, Ubuntu and Windows.

Additionally, this update resolves the `MD034/no-bare-urls Bare URL
used` linting error that surfaced when testing on Windows.
This commit is contained in:
undergroundwires
2024-05-18 13:14:05 +02:00
parent 9ab3ff75b0
commit 2390530d92
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ on: [ push, pull_request ]
jobs:
lint:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
lint-command:

View File

@@ -105,5 +105,5 @@ console.log(`Status code: ${status.code}`);
- This is useful for websites that do not respond to HEAD requests, such as those behind certain CDN or web application firewalls.
- Provide patterns as regular expressions (`RegExp`), allowing them to match any part of a URL.
- Examples:
- To match any URL starting with "https://example.com/api": `/^https:\/\/example\.com\/api/`
- To match any domain ending with "cloudflare.com": `/^https:\/\/.*\.cloudflare\.com\//`
- To match any URL starting with `https://example.com/api`: `/^https:\/\/example\.com\/api/`
- To match any domain ending with `cloudflare.com`: `/^https:\/\/.*\.cloudflare\.com\//`