-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 1.32 KB
/
test.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: Test
on:
pull_request:
paths-ignore:
- '*.md'
jobs:
build-and-test:
runs-on: ubuntu-latest
outputs:
affected-paths: ${{ steps.generate.outputs.projects }}
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
lfs: true
# https://github.com/gradle/gradle-build-action/issues/561
- name: Create Gradle files
run: |
cd ~
mkdir -p .gradle/ && touch .gradle/gradle.properties
- name: Set up Java
id: setup-java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 17
- name: Setup Gradle Java installations paths
run: |
cd ~/.gradle
echo "org.gradle.java.installations.paths=${{ steps.setup-java.outputs.path }}" >> gradle.properties
- name: Setup gradle
uses: gradle/gradle-build-action@v2
- name: Build and test tooling
run: ./gradlew --no-daemon --profile --stacktrace -PRELEASE_SIGNING_ENABLED=false -p tooling publishToMavenLocal build test
- name: Build and test affected-paths
run: ./gradlew --no-daemon --profile --stacktrace -PRELEASE_SIGNING_ENABLED=false -p affected-paths publishToMavenLocal build test
env:
GRADLE_OPTS: -Dorg.gradle.parallel=true -Dorg.gradle.caching=true