-
Notifications
You must be signed in to change notification settings - Fork 349
92 lines (85 loc) · 2.66 KB
/
plugin-it.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Plugin Integration Tests
on:
workflow_call:
jobs:
android-test:
timeout-minutes: 30
runs-on: ubuntu-latest
defaults:
run:
working-directory: integration/gradle-plugin-android-test
steps:
- uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Set up Gradle cache
uses: gradle/actions/setup-gradle@v3
- name: Android Test
run: ./gradlew build
- name: Archive failures
uses: actions/upload-artifact@v3
if: failure()
with:
name: gradle-plugin-android-build-reports
path: integration/gradle-plugin-android-test/**/build/reports
retention-days: 7
gradle-integration-tests:
timeout-minutes: 30
runs-on: ubuntu-latest
defaults:
run:
working-directory: integration/gradle-plugin-integration-tests
steps:
- uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Set up Gradle cache
uses: gradle/actions/setup-gradle@v3
- name: Integration Tests
run: ./gradlew build
- name: Archive failures
uses: actions/upload-artifact@v3
if: failure()
with:
name: gradle-plugin-build-reports
path: integration/gradle-plugin-integration-tests/**/build/reports
retention-days: 7
maven-integration-tests:
timeout-minutes: 30
runs-on: ubuntu-latest
defaults:
run:
working-directory: integration/maven-plugin-integration-tests
steps:
- uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
cache: 'maven'
- name: Set up Gradle cache
uses: gradle/actions/setup-gradle@v3
- name: Integration Tests
run: ./gradlew build
- name: Archive failures
uses: actions/upload-artifact@v3
if: failure()
with:
name: maven-plugin-build-reports
path: |
integration/maven-plugin-integration-tests/build/integration/**/build.log
integration/maven-plugin-integration-tests/build/integration/**/target/surefire-reports
retention-days: 7