Skip to content

Commit 0638649

Browse files
Update smoke-tests.yml
1 parent 51bb313 commit 0638649

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

.github/workflows/smoke-tests.yml

+33-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
smoke-test:
1111
strategy:
12+
fail-fast: false
1213
matrix:
1314
args:
1415
- "--invites"
@@ -54,12 +55,41 @@ jobs:
5455

5556
- name: Check header in first line
5657
run: |
57-
HEADER="repository name,author name,author login,author email,date and time,changed files,commit id,branch"
58+
case "${{ matrix.args }}" in
59+
--invites)
60+
HEADER="repository name,invited login,invite creation date,invitation url"
61+
;;
62+
--commits)
63+
HEADER="repository name,author name,author login,author email,date and time,changed files,commit id,branch"
64+
;;
65+
--pull_requests)
66+
HEADER="repository name,title,id,state,commit into,commit from,created at,creator name,creator login,creator email,changed files,comment body,comment created at,comment author name,comment author login,comment author email,merger name,merger login,merger email,source branch,target branch,assignee story,related issues,labels,milestone"
67+
;;
68+
--issues)
69+
HEADER="repository name,number,title,state,task,created at,creator name,creator login,creator email,closer name,closer login,closer email,closed at,comment body,comment created at,comment author name,comment author login,comment author email,assignee story,connected pull requests,labels,milestone"
70+
;;
71+
--wikis)
72+
HEADER="repository name,author name,author login,datetime,page,action,revision id,added lines,deleted lines"
73+
;;
74+
--contributors)
75+
HEADER="repository name,contributor login,number of commits,additions,deletions,branch"
76+
;;
77+
--workflow_runs)
78+
HEADER="repository name,workflow name,run id,status,conclusion,author login,author email,date and time,url,branch"
79+
;;
80+
*)
81+
echo "Unknown ARG: '${{ matrix.args }}'"
82+
exit 1
83+
;;
84+
esac
85+
5886
FIRST_LINE=$(head -n 1 out.csv)
5987
6088
if [[ "$FIRST_LINE" == "$HEADER"* ]]; then
61-
echo "Header is valid"
89+
echo "Header is valid for ${{ matrix.args }}"
6290
else
63-
echo "Header is invalid"
91+
echo "::error::Header is invalid for ${{ matrix.args }}"
92+
echo "Expected: $HEADER"
93+
echo "Actual: $FIRST_LINE"
6494
exit 1
6595
fi

0 commit comments

Comments
 (0)