mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-09 23:17:46 +08:00
71e77c2147
Signed-off-by: Simon L <szaimen@e.mail.de>
25 lines
592 B
YAML
25 lines
592 B
YAML
name: Json Validator
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.json'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '**.json'
|
|
|
|
jobs:
|
|
json-validator:
|
|
name: Json Validator
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
- name: Validate Json
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install python3-pip -y --no-install-recommends
|
|
sudo pip3 install json-spec
|
|
json validate --schema-file=php/containers-schema.json --document-file=php/containers.json
|