Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup PR check and release Github Actions
- Loading branch information
1 parent
beaa895
commit c42fccb
Showing
3 changed files
with
60 additions
and
0 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,31 @@ | ||
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 | ||
- 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 Lint Check | ||
shell: bash | ||
run: ./gradlew lintCheck | ||
- 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' |
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,24 @@ | ||
name: Release build | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
name: Release build | ||
runs-on: [ubuntu-latest] | ||
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 --stacktrace --no-daemon -PBINTRAY_USER=${{secrets.BINTRAY_USER}} -PBINTRAY_KEY=${{secrets.BINTRAY_KEY}} -PBINTRAY_GPG_KEY=${{secrets.BINTRAY_GPG_KEY}} |
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,5 @@ | ||
source 'https://rubygems.org'; | ||
gem 'thefuntasty_danger'; | ||
gem 'danger-checkstyle_format'; | ||
gem 'danger-android_lint'; | ||
gem 'danger-junit' |