Skip to content

Commit

Permalink
[Java, C#] Add a GitHub workflow for slow checks.
Browse files Browse the repository at this point in the history
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
ZachBray committed Oct 11, 2023
1 parent db07752 commit 1ca5ea1
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/slow.yml
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

0 comments on commit 1ca5ea1

Please sign in to comment.