mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
* Update Gradle used in tooling subprojects * Update Kotlin in Compose Gradle plugin * Decrease verbosity of Gradle plugin tests * Disable mac sign test * Add workflow to test Gradle plugin * Fix custom jdk tests on Linux * Make Compose Gradle plugin build compatible with Configuration cache * Print tests summary * Remove unused code * Refactor tests configuration * Turn off parallel execution * Try adding windows runner * Turn off fail fast * Fix Windows test issues #2368 * Adjust default proguard rules The following rule is needed to fix tests on Windows: ``` -dontwarn org.graalvm.compiler.core.aarch64.AArch64NodeMatchRules_MatchStatementSet* ``` Other rules are just to make builds less noisy. Kotlin's `*.internal` packages often contain bytecode, which triggers ProGuard's notes. However, these notes are not actionable for most users, so we can ignore notes by default. #2393
35 lines
987 B
YAML
35 lines
987 B
YAML
name: Test Gradle plugin
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'gradle-plugins/**'
|
|
- '.github/workflows/gradle-plugin.yml'
|
|
jobs:
|
|
test-gradle-plugin:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-20.04, macos-12, windows-2022]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'corretto'
|
|
java-version: '16'
|
|
- name: Test Gradle plugin
|
|
shell: bash
|
|
run: |
|
|
cd gradle-plugins
|
|
./gradlew assemble
|
|
./gradlew :compose:check --continue
|
|
- 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 |