summaryrefslogtreecommitdiffstats
path: root/.github/workflows/validate.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-11-26 09:28:28 +0100
committerDaniel Baumann <daniel@debian.org>2024-11-26 12:25:58 +0100
commita1882b67c41fe9901a0cd8059b5cc78a5beadec0 (patch)
tree2a24507c67aa99a15416707b2f7e645142230ed8 /.github/workflows/validate.yml
parentInitial commit. (diff)
downloaduptime-kuma-upstream.tar.xz
uptime-kuma-upstream.zip
Adding upstream version 2.0.0~beta.0+dfsg.upstream/2.0.0_beta.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '.github/workflows/validate.yml')
-rw-r--r--.github/workflows/validate.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
new file mode 100644
index 0000000..7e631cc
--- /dev/null
+++ b/.github/workflows/validate.yml
@@ -0,0 +1,43 @@
+name: validate
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+ - 1.23.X
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pull-requests: write # enable write permissions for pull request comments
+
+jobs:
+ json-yaml-validate:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: json-yaml-validate
+ id: json-yaml-validate
+ uses: GrantBirki/json-yaml-validate@v2.4.0
+ with:
+ comment: "true" # enable comment mode
+ exclude_file: ".github/config/exclude.txt" # gitignore style file for exclusions
+
+ # General validations
+ validate:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Use Node.js 20
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+
+ - name: Validate language JSON files
+ run: node ./extra/check-lang-json.js
+
+ - name: Validate knex migrations filename
+ run: node ./extra/check-knex-filenames.mjs