Merge pull request #5532 from nextcloud/ci/json-validator/use-venv

ci(json-validator): use venv
This commit is contained in:
Simon L. 2024-11-06 16:33:52 +01:00 committed by GitHub
commit 45a0350b16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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