Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check PR
on: [pull_request]

jobs:
pr:
name: PR check
runs-on: [ubuntu-latest]
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run LintCheck
shell: bash
run: ./gradlew detekt ktlintCheck assembleRelease
- name: Run unit tests
shell: bash
run: ./gradlew --continue testRelease
- name: Danger action
uses: MeilCli/danger-action@v2
continue-on-error: true
with:
plugins_file: 'Gemfile'
danger_file: 'Dangerfile'
danger_id: 'danger-pr'
35 changes: 35 additions & 0 deletions .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Check 2.x
on:
push:
branches:
- 2.x

jobs:
master:
name: 2.x check
runs-on: [ubuntu-latest]
env:
SLACK_CHANNEL: android
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run LintCheck
shell: bash
run: ./gradlew detekt ktlintCheck assembleRelease
- name: Run unit tests
shell: bash
run: ./gradlew --continue testRelease
- name: Slack Notification
if: failure()
uses: homoluctus/slatify@master
with:
type: "failure"
job_name: '*2.x Check*'
username: GitHub
channel: ${{env.SLACK_CHANNEL}}
url: ${{ secrets.SLACK_WEB_HOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release build

on:
release:
types: [published]

jobs:
release:
name: Release build
runs-on: [ubuntu-latest]
env:
EXCLUDE_APK_FILTER: .*unaligned.apk\|.*Test.*.apk
GRADLE_PUBLISH_KEY: ${{secrets.GRADLE_PUBLISH_KEY}}
GRADLE_PUBLISH_SECRET: ${{secrets.GRADLE_PUBLISH_SECRET}}
BINTRAY_USER: ${{secrets.BINTRAY_USER}}
BINTRAY_KEY: ${{secrets.BINTRAY_KEY}}
BINTRAY_GPG_KEY: ${{secrets.BINTRAY_GPG_KEY}}
BITRISE_GIT_TAG: ${{github.event.release.name}}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run unit tests
shell: bash
run: ./gradlew --continue testRelease
- name: Upload to Bintray
run: ./gradlew build publish bintrayUpload
- name: Publish plugins
run: ./gradlew publishPlugins