diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..6f48231 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: Domi04151309 +custom: ['https://www.paypal.com/donate/?hosted_button_id=487FTCX52P9WA'] diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 0000000..5e21670 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,31 @@ +--- +name: Bug Report +about: Create a report to help improving the app +title: "[Bug Report] Your Title" +labels: bug +assignees: '' + +--- + +**Description** + +_A clear and concise description of what the bug is. +Please add steps to reproduce the behavior._ + +
+ Screenshots + + _Add screenshots here to describe the problem._ +
+ +
+ Logs + + _Add a detailed stack trace / crash log here if applicable_ +
+ +**Additional information** + + - Android version: _System Settings > About > Android version (varies per device)_ + - Home App version: _Settings > About > Version_ + - Installation source: _Google Play / F-Drod / Own Build_ diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 0000000..26704ff --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,18 @@ +--- +name: Feature Request +about: Suggest an idea for this project +title: "[Feature Request] Your Title" +labels: enhancement +assignees: '' + +--- + +**Describe the solution you'd like** + +_A clear and concise description of what you want to happen._ + +
+ Additional context + + _Add any other context or screenshots about the feature request here._ +
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bca3767 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,72 @@ +name: Continuous Integration + +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + ktlint: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - name: Install + run: | + curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.0.1/ktlint + chmod a+x ktlint + sudo mv ktlint /usr/local/bin/ + - name: Run + run: ktlint --reporter sarif -l none > ktlint.sarif + - name: Upload SARIF + uses: github/codeql-action/upload-sarif@v3 + if: success() || failure() + with: + sarif_file: ktlint.sarif + detekt: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Run + run: | + chmod +x gradlew + ./gradlew detekt + - name: Upload SARIF + uses: github/codeql-action/upload-sarif@v3 + if: success() || failure() + with: + sarif_file: app/build/reports/detekt/detekt.sarif + - name: Job Summary + if: success() || failure() + run: cat ./app/build/reports/detekt/detekt.md >> $GITHUB_STEP_SUMMARY + build: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Run + run: | + chmod +x gradlew + ./gradlew build