-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Java, C#] Add a GitHub workflow for slow checks.
This workflow is configured to run once per day or when manually requested. At the moment, the slow checks include several property-based tests. These tests take a significant amount of time to execute; therefore, we decided it was better to keep them out of the CI build.
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Slow checks | ||
|
||
on: | ||
workflow_dispatch: | ||
branches: | ||
- '**' | ||
schedule: | ||
- cron: '0 12 * * *' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
property-tests: | ||
name: Property tests | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
java: [ '21' ] | ||
dotnet: [ '3.1.301' ] | ||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION | ||
run: | | ||
java -Xinternalversion | ||
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV | ||
echo "BUILD_JAVA_VERSION=${{ matrix.java }}" >> $GITHUB_ENV | ||
- name: Setup java 8 to run the Gradle script | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 8 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: ${{ matrix.dotnet }} | ||
- name: Build SbeTool | ||
run: ./gradlew | ||
- name: Build .NET library | ||
run: ./csharp/build.sh | ||
- name: Run property tests | ||
run: ./gradlew propertyTest |