-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Avimitin <[email protected]>
- Loading branch information
Showing
4 changed files
with
132 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,23 @@ jobs: | |
run: | | ||
nix run ".#ci-helper" -- postCI \ | ||
--case-dir t1rocket-cases \ | ||
--cycle-update-file-path ./cycle-update.md \ | ||
--failed-tests-file-path ./failed-tests.md \ | ||
--emu-type vcs | ||
cat ./failed-tests.md >> $GITHUB_STEP_SUMMARY | ||
echo >> $GITHUB_STEP_SUMMARY | ||
cat ./cycle-update.md >> $GITHUB_STEP_SUMMARY | ||
- name: "Commit cycle updates" | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
changed_cases=$(git diff --name-only '.github/**/default.json') | ||
if [ -n "$changed_cases" ]; then | ||
echo "changed cases: $changed_cases" | ||
git add '.github/**/default.json' | ||
git commit -m "[ci] update test case cycle data" | ||
git push origin ${{ github.head_ref }} | ||
else | ||
echo "No cycle change detect" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,5 +100,24 @@ jobs: | |
ref: ${{ github.head_ref }} | ||
- name: "Print step summary" | ||
run: | | ||
nix run ".#ci-helper" -- postCI --failed-tests-file-path ./failed-tests.md --emu-type vcs | ||
nix run ".#ci-helper" -- postCI \ | ||
--cycle-update-file-path ./cycle-update.md \ | ||
--failed-tests-file-path ./failed-tests.md \ | ||
--emu-type vcs | ||
cat ./cycle-update.md >> $GITHUB_STEP_SUMMARY | ||
echo >> $GITHUB_STEP_SUMMARY | ||
cat ./failed-tests.md >> $GITHUB_STEP_SUMMARY | ||
- name: "Commit cycle updates" | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
changed_cases=$(git diff --name-only '.github/**/default.json') | ||
if [ -n "$changed_cases" ]; then | ||
echo "changed cases: $changed_cases" | ||
git add '.github/**/default.json' | ||
git commit -m "[ci] update test case cycle data" | ||
git push origin ${{ github.head_ref }} | ||
else | ||
echo "No cycle change detect" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,4 +106,19 @@ jobs: | |
run: | | ||
nix run ".#ci-helper" -- postCI --failed-tests-file-path ./failed-tests.md --cycle-update-file-path ./cycle-update.md | ||
cat ./failed-tests.md >> $GITHUB_STEP_SUMMARY | ||
echo >> $GITHUB_STEP_SUMMARY | ||
cat ./cycle-update.md >> $GITHUB_STEP_SUMMARY | ||
- name: "Commit cycle updates" | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
changed_cases=$(git diff --name-only '.github/**/default.json') | ||
if [ -n "$changed_cases" ]; then | ||
echo "changed cases: $changed_cases" | ||
git add '.github/**/default.json' | ||
git commit -m "[ci] update test case cycle data" | ||
git push origin ${{ github.head_ref }} | ||
else | ||
echo "No cycle change detect" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters