Skip to content

Commit

Permalink
Run tests in parallel on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ruXlab committed Dec 14, 2023
1 parent aca0670 commit e9b9589
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache Gradle dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: gradle-deps-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
Expand All @@ -38,5 +38,7 @@ jobs:
./gradlew clean build --no-daemon
- name: Run Tests
env:
TEST_CONCURRENCY: 4
run: |
./gradlew test --no-daemon
3 changes: 3 additions & 0 deletions localnode/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ tasks.test {
TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED
)
}
System.getenv("TEST_CONCURRENCY")?.toIntOrNull()?.let {
maxParallelForks = it
}
}

0 comments on commit e9b9589

Please sign in to comment.