Skip to content

Commit

Permalink
added sh script to test-json
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdaniell committed Feb 2, 2024
1 parent 8e27209 commit 024d929
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,5 @@ jobs:
name: "test.json"
json: '{"name":"jsdaniell", "password":"mypass"}'
- name: assert-json-exists
run: |
if [ ! -f "test.json" ]; then
echo "JSON file not found."
exit 1 # Fail the workflow if the file is not found
fi
- name: validate-json-structure
run: |
cat test.json | jq empty
run: "sh test-json.sh"

0 comments on commit 024d929

Please sign in to comment.