-
Notifications
You must be signed in to change notification settings - Fork 62
78 lines (70 loc) · 1.94 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: "Build and Report Generation"
on:
push:
branches : [main]
paths:
- '**'
- '!docs/**'
- '!**/*.md'
- '!**/*.adoc'
pull_request:
paths:
- '**'
- '!docs/**'
- '!**/*.md'
- '!**/*.adoc'
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
java: [11, 17]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Test and Report
env:
DOKKA: false
GRADLE_OPTS: -Dorg.gradle.jvmargs="-XX:MaxMetaspaceSize=1g"
run: ./gradlew build jacocoTestReport
# Upload coverage for CLI, LANG, PTS, TEST_SCRIPT, and EXAMPLES
- name: Upload CLI coverage
uses: codecov/codecov-action@v3
with:
file: partiql-cli/build/reports/jacoco/test/jacocoTestReport.xml
flags: CLI
- name: Upload LANG coverage
uses: codecov/codecov-action@v3
with:
file: partiql-lang/build/reports/jacoco/test/jacocoTestReport.xml
flags: LANG
- name: Upload EXAMPLES coverage
uses: codecov/codecov-action@v3
with:
file: examples/build/reports/jacoco/test/jacocoTestReport.xml
flags: EXAMPLES
randomized-test:
runs-on: ubuntu-20.04
strategy:
matrix:
java: [ 11, 17 ]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}
cache: gradle
- name: Build and test
run: ./gradlew :test:partiql-randomized-tests:test -PrandomTests