2024-10-28 01:20:29 -05:00
|
|
|
name: validate
|
2023-03-26 16:34:25 -05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-03-26 16:35:00 -05:00
|
|
|
- master
|
2023-03-26 16:34:25 -05:00
|
|
|
pull_request:
|
2023-03-26 16:35:00 -05:00
|
|
|
branches:
|
|
|
|
- master
|
2023-12-04 04:19:18 -06:00
|
|
|
- 1.23.X
|
2023-03-26 16:34:25 -05:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write # enable write permissions for pull request comments
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
json-yaml-validate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-12-04 04:19:18 -06:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-26 16:34:25 -05:00
|
|
|
|
|
|
|
- name: json-yaml-validate
|
|
|
|
id: json-yaml-validate
|
2023-12-04 04:19:18 -06:00
|
|
|
uses: GrantBirki/json-yaml-validate@v2.4.0
|
2023-03-26 16:34:25 -05:00
|
|
|
with:
|
|
|
|
comment: "true" # enable comment mode
|
2023-03-30 05:46:28 -05:00
|
|
|
exclude_file: ".github/config/exclude.txt" # gitignore style file for exclusions
|
2024-10-22 23:47:04 -05:00
|
|
|
|
2024-10-28 01:20:29 -05:00
|
|
|
# General validations
|
|
|
|
validate:
|
2024-10-22 23:47:04 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js 20
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
2024-10-28 01:20:29 -05:00
|
|
|
|
|
|
|
- name: Validate language JSON files
|
|
|
|
run: node ./extra/check-lang-json.js
|
|
|
|
|
|
|
|
- name: Validate knex migrations filename
|
|
|
|
run: node ./extra/check-knex-filenames.mjs
|