name: Check PR | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
check-pr-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get code from repository | |
uses: actions/checkout@v2 | |
- name: Setup JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Make gradlew executable | |
run: chmod +x gradlew | |
- name: Compile project | |
run: ./gradlew assemble | |
- name: Run tests | |
run: ./gradlew test | |
- name: Run quality tools | |
uses: le0nidas/ktlint-pr-comments@v1 | |
with: | |
repotoken: ${{ secrets.GITHUB_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment