From 78fa7a3dee1c61bdfd6084b62bb6f0efd084f764 Mon Sep 17 00:00:00 2001 From: maxgfr <25312957+maxgfr@users.noreply.github.com> Date: Wed, 26 Jun 2024 11:34:48 +0200 Subject: [PATCH] fix: test --- .github/workflows/fetch-test.yml | 4 ++-- .github/workflows/fetch.yml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fetch-test.yml b/.github/workflows/fetch-test.yml index 837d9fe07b..dedd1788cc 100644 --- a/.github/workflows/fetch-test.yml +++ b/.github/workflows/fetch-test.yml @@ -39,8 +39,8 @@ jobs: - name: Check JSON run: | - for filename in ./data/*\.json; do - node "$filename" > /dev/null || { + for filename in ./data/*.json; do + jq empty "$filename" > /dev/null || { echo "Invalid JSON in $filename" exit 1 } diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml index 95d07a2f46..5cdf6a4dfb 100644 --- a/.github/workflows/fetch.yml +++ b/.github/workflows/fetch.yml @@ -35,9 +35,6 @@ jobs: echo "Data status ${{ steps.metadata.outputs.now }}" echo "${{ steps.metadata.outputs.data_status }}" - - name: Install jq - run: sudo apt-get update && sudo apt-get install -y jq - - name: Check JSON run: | for filename in ./data/*.json; do