Skip to content

Commit

Permalink
run all tests with latest deps
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Mar 31, 2023
1 parent 87523a8 commit aea023a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,15 @@ jobs:
if: failure()
uses: actions/upload-artifact@v3
with:
name: deadlock-detector-test-${{ matrix.test-java-version }}-${{ matrix.vm }}
name: deadlock-detector-test-${{ matrix.test-java-version }}-${{ matrix.vm }}-${{ matrix.test-partition }}
path: /tmp/deadlock-detector-*
if-no-files-found: ignore

- name: Upload jvm crash dump files if any
if: failure()
uses: actions/upload-artifact@v3
with:
name: javacore-test-${{ matrix.test-java-version }}
name: javacore-test-${{ matrix.test-java-version }}-${{ matrix.test-partition }}
path: |
**/hs_err_pid*.log
**/javacore.*.txt
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/reusable-test-latest-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,23 @@ jobs:
run: |
sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx3g /" gradle.properties
- name: List tests
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }}
GE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}
uses: gradle/gradle-build-action@v2
with:
arguments: >
check
listTestPartitions
-PtestPartition=${{ matrix.test-partition }}
cache-read-only: true

- name: Set test tasks
run: |
echo "test-task=$(cat test-tasks.txt | xargs echo | sed 's/\n/ /g')" >> $GITHUB_ENV
- name: Test
uses: gradle/gradle-build-action@v2
env:
Expand All @@ -63,9 +80,9 @@ jobs:
GE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}
with:
arguments: >
test
${{ env.test-task }}
-PtestLatestDeps=true
-PtestPartition=${{ matrix.test-partition }}
--no-build-cache
${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
cache-read-only: ${{ inputs.cache-read-only }}
# gradle enterprise is used for the build cache
Expand Down

0 comments on commit aea023a

Please sign in to comment.