Skip to content

Commit 59d1214

Browse files
committed
non-optional docker tests
1 parent 6dee43c commit 59d1214

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ jobs:
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GH_TKN }}
5959
run: npm run docker:test
60-
continue-on-error: true

test.docker.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
#!/usr/bin/env bash
22

3-
source .env.sh
3+
# following commands should work without the GITHUB_TOKEN needing to be set.
44

55
echo "************** help *****************"
66

77
# test handling of single parameter
88
docker run --rm \
99
-v ./dummy:/app/dummy \
1010
-w /app \
11-
-e GITHUB_TOKEN \
1211
-e DEBUG \
1312
github-graphql-client:latest "--help"
1413

14+
echo "************** version *****************"
15+
16+
# test handling of single parameter
17+
docker run --rm \
18+
-v ./dummy:/app/dummy \
19+
-w /app \
20+
-e DEBUG \
21+
github-graphql-client:latest "-v"
22+
23+
# commands below need GITHUB_TOKEN to be set.
24+
source .env.sh
25+
1526
echo "************ branch arg missing *******************"
1627

1728
# test handling of multiple parameters

0 commit comments

Comments
 (0)