Skip to content

Commit

Permalink
ci: add kit compatiblity tests for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
willpassidomo committed Mar 24, 2022
1 parent 722c290 commit 87683b7
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,34 @@ jobs:
with:
name: "kotlin-lint-results"
path: ./**/build/reports/**
kit-compatibility-test:
name: "Kit Compatibility Test"
runs-on: ubuntu-20.04
if: github.event_name == 'pull_request'
steps:
- name: "Checkout Branch"
uses: actions/checkout@v2
with:
repository: ${{github.event.pull_request.head.repo.full_name}}
ref: ${{github.head_ref}}
submodules: recursive
- name: "Install JDK 11"
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: "11"
- name: "Get Latest Kits"
run: git submodule foreach "git checkout main"
- name: "Generate Core Release Build"
run: ./gradlew -PisRelease=true publishLocal
- name: "Run Kit-Base Release Tests and Build"
run: ./gradlew -PisRelease=true :android-kit-base:testRelease
- name: "Run Kit Release Tests and Build"
run: ./gradlew -PisRelease=true -p kits testRelease -c ../settings-kits.gradle
automerge:
name: "Rebase dependabot PRs"
runs-on: ubuntu-18.04
needs: [instrumented-tests, unit-tests]
needs: [instrumented-tests, unit-tests, kit-compatibility-test]
if: contains(github.repository, 'internal') && github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'
steps:
- name: Rebase Dependabot PR
Expand Down

0 comments on commit 87683b7

Please sign in to comment.