You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if: github.ref != 'refs/heads/main' # Runs on every PR and both go versions
290
291
run: make gotest GROUP=${{ matrix.group }}
291
292
- name: Run Unit Tests With JUnit and Coverage
292
-
if: startsWith( matrix.go-version, '1.23' ) # only run junit/coverage on one version
293
+
id: tests-with-junit
294
+
if: startsWith( matrix.go-version, '~1.23' ) && github.ref == 'refs/heads/main' && github.event_name == 'push' # only run junit/coverage on one version and only on main
295
+
continue-on-error: true # Allow uploading artifacts even if the test fails
293
296
run: make gotest-with-junit-and-cover GROUP=${{ matrix.group }}
294
297
- uses: actions/upload-artifact@v4
295
-
if: startsWith( matrix.go-version, '1.23' ) # only upload artifact for one version
298
+
if: startsWith( matrix.go-version, '~1.23' ) && github.ref == 'refs/heads/main' && github.event_name == 'push' # only upload artifact for one version and only on main
if: startsWith( matrix.go-version, '1.23' ) # only upload artifact for one version
303
+
if: startsWith( matrix.go-version, '~1.23' ) && github.ref == 'refs/heads/main' && github.event_name == 'push' # only upload artifact for one version and only on main
0 commit comments