diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..b20f7d4 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,32 @@ +name: CI +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v2 + + - name: Set up Java + uses: actions/setup-java@v2 + with: + java-version: 17 + distribution: "temurin" + + - name: Make gradlew executable + run: chmod +x ./gradlew + + - name: Run lint + run: ./gradlew lintDebug + + - name: Upload html test report + uses: actions/upload-artifact@v2 + with: + name: lint.html + path: app/build/reports/lint-results-debug.html