forked from ben-manes/caffeine
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.19 KB
/
examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: examples
on: [ push, pull_request ]
env:
ORG_GRADLE_PROJECT_checksumFailOn: build_finish
ORG_GRADLE_PROJECT_checksumIgnore: false
ORG_GRADLE_PROJECT_checksumPrint: true
jobs:
examples:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 16 ]
steps:
- uses: actions/[email protected]
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
uses: actions/[email protected]
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
~/.m2
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.java }}-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: simulator
run: ./gradlew simulator:run
- name: stats-metrics
working-directory: examples/stats-metrics
run: ./gradlew test
- name: write-behind-rxjava
working-directory: examples/write-behind-rxjava
run: mvn test
- name: coalescing-bulkloader
working-directory: examples/coalescing-bulkloader
run: mvn test