-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from GetStream/develop
Merge into the main branch
- Loading branch information
Showing
57 changed files
with
1,157 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Build and test | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: ktlint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
- name: Set up JDK 11 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
- uses: ./.github/actions/gradle-cache | ||
with: | ||
key-prefix: gradle-lint | ||
- name: spotless | ||
run: ./gradlew spotlessCheck --scan | ||
- name: Detekt | ||
if: always() | ||
run: ./gradlew detekt | ||
|
||
api_check: | ||
name: API check | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
- name: Set up JDK 11 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
- uses: ./.github/actions/gradle-cache | ||
with: | ||
key-prefix: gradle-APICheck | ||
- name: API check | ||
run: ./gradlew apiCheck --scan | ||
|
||
debug_build: | ||
name: Debug build | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
- name: Set up JDK 11 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
- uses: ./.github/actions/gradle-cache | ||
with: | ||
key-prefix: gradle-build | ||
- name: Build | ||
run: ./gradlew assembleDebug --scan | ||
|
||
test: | ||
name: Unit tests | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
- name: Set up JDK 11 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
- uses: ./.github/actions/gradle-cache | ||
with: | ||
key-prefix: gradle-test | ||
- name: Unit tests | ||
run: ./gradlew test | ||
- name: Upload test results | ||
uses: actions/[email protected] | ||
if: failure() | ||
with: | ||
name: testDebugUnitTest | ||
path: ./**/build/reports/tests/testDebugUnitTest |
Oops, something went wrong.