Skip to content

Commit

Permalink
feat #55: workflow for the project
Browse files Browse the repository at this point in the history
  • Loading branch information
PratyushSingh07 authored and therajanmaurya committed Apr 3, 2024
1 parent 502735e commit fd5746e
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -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.
30 changes: 30 additions & 0 deletions .github/workflows/feature_branch_ci.yml
Original file line number Diff line number Diff line change
@@ -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
36 changes: 36 additions & 0 deletions .github/workflows/master_dev_ci.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
name: mifos-passcode
path: app/build/outputs/apk/debug/

0 comments on commit fd5746e

Please sign in to comment.