Skip to content

Commit 332aa05

Browse files
committed
integration tests
1 parent 9ccf61f commit 332aa05

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,18 @@ jobs:
167167
! pkgx -Qqq flubber-flubber
168168
pkgx -Q
169169
170+
- name: query --json
171+
run: |
172+
pkgx -Q --json=v2 git | pkgx jq -e '.[0].project == "git-scm.org"'
173+
pkgx -Q --json=v2 git | pkgx jq -e '.[0].programs | length > 0'
174+
pkgx -Q --json=v2 | pkgx jq -e 'length > 0'
175+
176+
- name: query pkgspecs
177+
run: |
178+
pkgx -Q git-scm.org | grep -q git-scm.org
179+
pkgx -Q node git | grep -q nodejs.org
180+
! pkgx -Q git-scm.org@99999
181+
170182
- run: if [ $(find ~/.pkgx -name .tmp\* -type d | wc -l) -gt 0 ]; then
171183
exit 1;
172184
fi

0 commit comments

Comments
 (0)