Skip to content

Commit 6b694d8

Browse files
authored
fix: test reports upload should be conditioned by lint (#118)
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent ac74e3f commit 6b694d8

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.github/workflows/TODO.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/go-test-monorepo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,5 +232,5 @@ jobs:
232232

233233
collect-reports:
234234
needs: [test]
235-
if: ${{ !cancelled() }}
235+
if: ${{ !cancelled() && needs.test.result != 'skipped' }}
236236
uses: ./.github/workflows/collect-reports.yml

.github/workflows/go-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ jobs:
125125

126126
collect-reports:
127127
needs: [test]
128-
if: ${{ !cancelled() }}
128+
if: ${{ !cancelled() && needs.test.result != 'skipped' }}
129129
uses: ./.github/workflows/collect-reports.yml

.github/workflows/prepare-release-monorepo.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ jobs:
148148
#
149149
# In some situations, we may have a test dependency of a module on itself and this
150150
# case must be skipped.
151+
#
152+
# Caveat: if the module's author forgot to put a proper release (e.g. use pseudo-commit instead of
153+
# proper vx.y.z require), this rewrite will be omitted. For now, this edge case is simply ignored.
151154
current_module=$(go list)
152155
while read -r module ; do
153156
echo "::notice title=updating-dependency::Updating ${module} to ${TARGET_TAG}"

0 commit comments

Comments
 (0)