diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2d72358 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +[*.{kt,kts}] +insert_final_newline=false +max_line_length=off +ktlint_disabled_rules=no-wildcard-imports,import-ordering,trailing-comma,final-newline, package-name \ No newline at end of file diff --git a/.github/workflows/pull-request-build.yml b/.github/workflows/pull-request-build.yml new file mode 100644 index 0000000..62a1c91 --- /dev/null +++ b/.github/workflows/pull-request-build.yml @@ -0,0 +1,40 @@ +name: Build and test + +on: + pull_request: + branches: + [ main ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: setup JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '17' + cache: 'gradle' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Cache Gradle + uses: actions/cache@v3 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Run ktlintFormat on the codebase + run: ./gradlew ktlintFormat + + - name: Run ktlintCheck on the codebase + run: ./gradlew ktlintCheck + + - name: Run Unit Tests + run: ./gradlew test + + - name: Run debug Build + run: ./gradlew assembleDebug \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 2cd4d77..61a3d27 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,5 +1,6 @@ +