Skip to content

Commit

Permalink
Merge pull request #14 from GetStream/develop
Browse files Browse the repository at this point in the history
Merge into the main branch
  • Loading branch information
skydoves authored Dec 6, 2022
2 parents 3002822 + e0c20e4 commit 95f098e
Show file tree
Hide file tree
Showing 57 changed files with 1,157 additions and 549 deletions.
89 changes: 89 additions & 0 deletions .github/workflows/build.yml
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
420 changes: 201 additions & 219 deletions LICENSE

Large diffs are not rendered by default.

Loading

0 comments on commit 95f098e

Please sign in to comment.