Skip to content

Commit

Permalink
test unit test times similar to circle
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes committed Feb 20, 2025
1 parent b05414b commit 60e06ad
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@

name: CI

## RUNNERS
# ubuntu-24.04 = 4cpu, 16GB
# windows-2022 = 4 cpu, 16GB
# ubuntu-24.04-arm = 4cpu, 16GB
# macos-13 = 4cpu, 14GB
# macos-15 = 3cpu(M1), 7GB

on:
pull_request:
push:
Expand Down Expand Up @@ -70,9 +77,16 @@ jobs:

- name: Unit Tests
run: |
export GRADLE_OPTS="$GRADLE_OPTS -Dorg.gradle.workers.max=3"
./gradlew test $GRADLE_ARGS
CLASSNAMES=$(find . -iwholename "**/src/test/java/**/*.java" \
| sed 's@.*/src/test/java/@@' \
| sed 's@/@.@g' \
| sed 's/.\{5\}$//' )
GRADLE_ARGS=$(echo $CLASSNAMES | awk '{for (i=1; i<=NF; i++) print "--tests",$i}')
echo "Prepared arguments for Gradle: $GRADLE_ARGS"
export GRADLE_OPTS="$GRADLE_OPTS -Dorg.gradle.workers.max=3"
./gradlew --no-daemon --parallel test $GRADLE_ARGS
# integrationTests:
# needs: assemble
# # 4 cpu, 16G ram
Expand Down

0 comments on commit 60e06ad

Please sign in to comment.