Merge pull request #177 from DavayPosmotrim/169_onboarding_navigation… #597
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 build | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
workflow_dispatch: | |
jobs: | |
check_pull_request: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '1.17' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: run detekt | |
run: ./gradlew detekt | |
- name: Run check out script | |
run: ./gradlew build | |
- name: Check status | |
run: echo "Check build status" | |
- name: Set failed if build failed | |
if: failure() | |
run: echo "::error::Build failed" |