Updated the codebase to following linting rules - Setting up CI/CD #4
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: CI | |
on: | |
# Triggers the workflow on push and PR | |
push: | |
pull_request: | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: ktLint | |
run: ./gradlew ktlintCheck | |
- name: Lint | |
run: ./gradlew lint | |
- name: Assembling | |
run: ./gradlew assembleDebug | |
- name: Unit testing | |
run: ./gradlew test |