diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..1e09f94 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,26 @@ +**Summary:** + +Summarize your issue in one sentence (what goes wrong, what did you expect to happen). + +**Steps to reproduce:** + +How can we reproduce the issue? + +**Expected behaviour:** + +What did you expect the app to do? + +**Observed behaviour:** + +What did you see instead? Describe your issue in detail here. + +**Device and Android version:** + +What make and model device (e.g., Samsung Galaxy S3) did you encounter this on? What Android +version (e.g., Android 4.0 Ice Cream Sandwich or Android 6.0 Marshmallow) are you running? Is it + the stock +version from the manufacturer or a custom ROM? + +**Screenshots:** + +Can be created by pressing the Volume Down and Power Button at the same time on Android 4.0 and higher. \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..f3fedaf --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,11 @@ +Fixes #Issue_Number + +Please Add Screenshots If there are any UI changes. + +Please make sure these boxes are checked before submitting your pull request - thanks! + +- [ ] Apply the `AndroidStyle.xml` style template to your code in Android Studio. + +- [ ] Run the unit tests with `./gradlew check` to make sure you didn't break anything + +- [ ] If you have multiple commits please combine them into one commit by squashing them. \ No newline at end of file diff --git a/.github/workflows/feature_branch_ci.yml b/.github/workflows/feature_branch_ci.yml new file mode 100644 index 0000000..edd8020 --- /dev/null +++ b/.github/workflows/feature_branch_ci.yml @@ -0,0 +1,30 @@ +name: Workflow for feature branches + +on: + push: + branches: + - '*' + - '!development' + - '!master' + +jobs: + build: + name: Build APK + runs-on: ubuntu-latest + steps: + - name: Checking out repository + uses: actions/checkout@v4 + + # Set up JDK + - name: Set Up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + + # Update Gradle Permission + - name: Change gradlew Permission + run: chmod +x gradlew + + # Build App + - name: Build with Gradle + run: ./gradlew assemble \ No newline at end of file diff --git a/.github/workflows/master_dev_ci.yml b/.github/workflows/master_dev_ci.yml new file mode 100644 index 0000000..201ebf5 --- /dev/null +++ b/.github/workflows/master_dev_ci.yml @@ -0,0 +1,36 @@ +name: Workflow for master/development branches + +on: + pull_request: + push: + branches: + - 'master' + +jobs: + build: + name: Build APK + runs-on: ubuntu-latest + steps: + - name: Checking out repository + uses: actions/checkout@v4 + + # Set up JDK + - name: Set Up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + + # Update Gradle Permission + - name: Change gradlew Permission + run: chmod +x gradlew + + # Build App + - name: Build with Gradle + run: ./gradlew assemble + + # Upload Built APK + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3.1.3 + with: + name: mifos-passcode + path: app/build/outputs/apk/debug/ \ No newline at end of file