Skip to content

Updated the codebase to following linting rules - Setting up CI/CD #4

Updated the codebase to following linting rules - Setting up CI/CD

Updated the codebase to following linting rules - Setting up CI/CD #4

Workflow file for this run

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