Merge pull request #172 from futuredapp/feature/dependencies #15
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
name: Check 5.x | |
on: | |
push: | |
branches: | |
- 5.x | |
jobs: | |
master: | |
name: 5.x check | |
runs-on: [ ubuntu-latest ] | |
env: | |
SLACK_CHANNEL: android | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Run unit tests | |
shell: bash | |
run: ./gradlew testRelease | |
- name: Build | |
shell: bash | |
run: ./gradlew build | |
- name: Build & publish snapshot | |
run: ./gradlew publish --no-daemon --no-parallel --stacktrace | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD }} | |
ORG_GRADLE_PROJECT_SIGNING_PRIVATE_KEY: ${{ secrets.GPG_SIGNING_PRIVATE_KEY }} | |
ORG_GRADLE_PROJECT_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }} | |
- name: Slack Notification | |
if: failure() | |
uses: homoluctus/slatify@master | |
with: | |
type: "failure" | |
job_name: '*5.x Check*' | |
username: GitHub | |
channel: ${{env.SLACK_CHANNEL}} | |
url: ${{ secrets.SLACK_WEB_HOOK }} | |
commit: true | |
token: ${{ secrets.GITHUB_TOKEN }} |