Skip to content

Commit

Permalink
TODO debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmski committed Apr 25, 2024
1 parent 2e24007 commit 1c309c5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Test

on:
push:
Expand All @@ -23,6 +23,11 @@ jobs:
distribution: 'corretto'
java-version: '11'

- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: '3.9.1'

- name: Build
run: make install

Expand All @@ -35,4 +40,14 @@ jobs:
run: make lint-build-ci

- name: Test
run: make test
run: |
export PATH=$(pwd)/bin:$PATH
make test
- name: Upload log failures
if: always()
uses: actions/upload-artifact@v4
with:
name: log-failures
path: logs
retention-days: 1
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ require-clean-worktree: # Check if there are uncommitted changes.
.PHONY: require-clean-worktree

test: # [<Go package] - # Test everything, or only the specified package.
which mvn
gotestsum --format standard-verbose --hide-summary skipped -- $(NO_UNIT_TEST_CACHE) -race -test.timeout $(UNIT_TEST_TIMEOUT)s -test.run='$(word 2,$(ARGS))' -v $(if $(ARGS), $(word 1,$(ARGS)), $(PACKAGE))
.PHONY: test
5 changes: 5 additions & 0 deletions bin/mvn
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

mkdir -p /home/runner/work/eval-dev-quality/eval-dev-quality/logs

/usr/bin/mvn "$@" 2>&1 | tee /home/runner/work/eval-dev-quality/eval-dev-quality/logs/$(date +%s ).log
5 changes: 5 additions & 0 deletions testdata/java/plain/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
<singleCloverDatabase>true</singleCloverDatabase>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
</plugins>
</build>
<dependencies>
Expand Down

0 comments on commit 1c309c5

Please sign in to comment.