mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
ci(json-validator): use venv
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
5c4d0b7a4a
commit
4f808d2d67
1 changed files with 37 additions and 36 deletions
5
.github/workflows/json-validator.yml
vendored
5
.github/workflows/json-validator.yml
vendored
|
|
@ -20,9 +20,10 @@ jobs:
|
||||||
- name: Validate Json
|
- name: Validate Json
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install python3-pip -y --no-install-recommends
|
sudo apt-get install python3-venv -y --no-install-recommends
|
||||||
|
python3 -m venv venv
|
||||||
|
. venv/bin/activate
|
||||||
pip3 install json-spec
|
pip3 install json-spec
|
||||||
export PATH="$PATH:/home/runner/.local/bin"
|
|
||||||
if ! json validate --schema-file=php/containers-schema.json --document-file=php/containers.json; then
|
if ! json validate --schema-file=php/containers-schema.json --document-file=php/containers.json; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue