Skip to content

CI

CI #52

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- unlabeled
jobs:
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 19
uses: actions/setup-java@v2
with:
java-version: '19'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assemble
- name: Run Tests
run: ./gradlew check
slack-on-failure:
needs: [android]
if: failure() && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: 8398a7/action-slack@v3
with:
status: failure
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}