Skip to content

Commit 64205f2

Browse files
committed
[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.
1 parent 1bd6090 commit 64205f2

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/slow.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Slow checks
2+
3+
on:
4+
workflow_dispatch:
5+
branches:
6+
- '**'
7+
schedule:
8+
- cron: '0 12 * * *'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
env:
15+
GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail'
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
property-tests:
22+
name: Property tests
23+
runs-on: ubuntu-22.04
24+
strategy:
25+
matrix:
26+
java: [ '21' ]
27+
dotnet: [ '3.1.301' ]
28+
env:
29+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
30+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v3
34+
- name: Setup java
35+
uses: actions/setup-java@v3
36+
with:
37+
distribution: 'zulu'
38+
java-version: ${{ matrix.java }}
39+
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
40+
run: |
41+
java -Xinternalversion
42+
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
43+
echo "BUILD_JAVA_VERSION=${{ matrix.java }}" >> $GITHUB_ENV
44+
- name: Setup java 8 to run the Gradle script
45+
uses: actions/setup-java@v3
46+
with:
47+
distribution: 'zulu'
48+
java-version: 8
49+
- name: Setup dotnet
50+
uses: actions/setup-dotnet@v2
51+
with:
52+
dotnet-version: ${{ matrix.dotnet }}
53+
- name: Build SbeTool
54+
run: ./gradlew
55+
- name: Build .NET library
56+
run: ./csharp/build.sh
57+
- name: Run property tests
58+
run: ./gradlew propertyTest

0 commit comments

Comments
 (0)