From c8c46cb9fb22ee09d7d3d58a74bf2bd6307b2688 Mon Sep 17 00:00:00 2001 From: Gronod Date: Sun, 17 May 2026 20:10:57 +0100 Subject: [PATCH 1/3] =?UTF-8?q?ci:=20disable=20MD024=20(duplicate=20headin?= =?UTF-8?q?gs)=20=E2=80=94=20expected=20in=20CHANGELOG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .markdownlint.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.markdownlint.json b/.markdownlint.json index 0546a3e..682d005 100644 --- a/.markdownlint.json +++ b/.markdownlint.json @@ -4,6 +4,7 @@ "MD012": false, "MD013": false, "MD022": false, + "MD024": false, "MD029": false, "MD031": false, "MD032": false, From cc4f420482cc1e2b99c842b2411c84bdbccf08ba Mon Sep 17 00:00:00 2001 From: Gronod Date: Sun, 17 May 2026 20:19:19 +0100 Subject: [PATCH 2/3] =?UTF-8?q?ci:=20add=20licence-check=20workflow=20?= =?UTF-8?q?=E2=80=94=20validates=20production=20dep=20licences=20against?= =?UTF-8?q?=20MIT-compatible=20allowlist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/licence-check.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/licence-check.yml diff --git a/.gitea/workflows/licence-check.yml b/.gitea/workflows/licence-check.yml new file mode 100644 index 0000000..629fe80 --- /dev/null +++ b/.gitea/workflows/licence-check.yml @@ -0,0 +1,38 @@ +name: Licence Check + +on: + push: + branches: ["**"] + paths: + - "package.json" + - "package-lock.json" + - ".gitea/workflows/licence-check.yml" + pull_request: + branches: ["**"] + paths: + - "package.json" + - "package-lock.json" + - ".gitea/workflows/licence-check.yml" + +jobs: + licence-check: + name: Dependency licence compatibility + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "22" + + - name: Install production dependencies + run: npm ci --omit=dev + + - name: Check licence compatibility + run: | + npx --yes license-checker --production \ + --onlyAllow "MIT;ISC;MIT-0;BSD-2-Clause;BSD-3-Clause;Apache-2.0;CC0-1.0;BlueOak-1.0.0" \ + --excludePrivatePackages \ + && echo "All production dependency licences are compatible with MIT." From ad024ab87bf3087f11c273dc7b2ba5a5e89cab67 Mon Sep 17 00:00:00 2001 From: Gronod Date: Sun, 17 May 2026 20:20:17 +0100 Subject: [PATCH 3/3] ci: exclude main and release/* branches from docs-check and licence-check workflows --- .gitea/workflows/docs-check.yml | 4 ++-- .gitea/workflows/licence-check.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/docs-check.yml b/.gitea/workflows/docs-check.yml index 14f4e86..32bd3d9 100644 --- a/.gitea/workflows/docs-check.yml +++ b/.gitea/workflows/docs-check.yml @@ -2,12 +2,12 @@ name: Docs Check on: push: - branches: ["**"] + branches: ["**", "!main", "!release/**"] paths: - "**.md" - ".gitea/workflows/docs-check.yml" pull_request: - branches: ["**"] + branches: ["**", "!main", "!release/**"] paths: - "**.md" - ".gitea/workflows/docs-check.yml" diff --git a/.gitea/workflows/licence-check.yml b/.gitea/workflows/licence-check.yml index 629fe80..267bda2 100644 --- a/.gitea/workflows/licence-check.yml +++ b/.gitea/workflows/licence-check.yml @@ -2,13 +2,13 @@ name: Licence Check on: push: - branches: ["**"] + branches: ["**", "!main", "!release/**"] paths: - "package.json" - "package-lock.json" - ".gitea/workflows/licence-check.yml" pull_request: - branches: ["**"] + branches: ["**", "!main", "!release/**"] paths: - "package.json" - "package-lock.json"