Skip to content

fix: extract ComposeUtils to share with plugins #451

fix: extract ComposeUtils to share with plugins

fix: extract ComposeUtils to share with plugins #451

name: Test and Lint
on: [pull_request]
jobs:
build:
name: Build with JDK ${{ matrix.java-version }}
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [11, 17]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: 'gradle'
- name: Build
run: ./gradlew build -x test
- name: Upload build results
if: always()
uses: actions/upload-artifact@v4
with:
# artifacts name
name: build-results-${{ matrix.java-version }}
# copy reports of all packages
path: '**/build/reports/**'
# artifact will expire in 7 days.
retention-days: 7
test-and-lint:
name: Test and Lint with JDK 17
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Unit Test
run: ./gradlew testDebugUnitTest
- name: Lint
run: ./gradlew ktlintCheck
- name: Upload test and lint results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-and-lint-results
path: '**/build/reports/**'
retention-days: 7