-
Notifications
You must be signed in to change notification settings - Fork 1.2k
50 lines (49 loc) · 1.44 KB
/
gradle-plugin.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
name: Test Gradle plugin
on:
pull_request:
paths:
- 'gradle-plugins/**'
- '.github/workflows/gradle-plugin.yml'
push:
branches:
- master
paths:
- 'gradle-plugins/**'
- '.github/workflows/gradle-plugin.yml'
jobs:
test-gradle-plugin:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, macos-14, windows-2022 ]
gradle: [ '8.0', '8.10.2' ]
agp: [ '8.1.0', '8.5.0', '8.8.0-alpha08' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Test Gradle plugin
shell: bash
run: |
cd gradle-plugins
./gradlew assemble
./gradlew --continue :preview-rpc:test :compose:test ':compose:test-Gradle(${{ matrix.gradle }})-Agp(${{ matrix.agp }})'
- name: Upload Reports
uses: actions/upload-artifact@v3
with:
name: Test-Reports
path: gradle-plugins/compose/build/reports
if: always()
- name: Print summary
shell: bash
if: always()
run: |
cd gradle-plugins/compose/build/test-summary
for SUMMARY_FILE in `find . -name "*.md"`; do
FILE_NAME=`basename $SUMMARY_FILE`
echo "## $FILE_NAME" >> $GITHUB_STEP_SUMMARY
cat $SUMMARY_FILE >> $GITHUB_STEP_SUMMARY
done