Skip to content

Commit

Permalink
Merge pull request #49 from raccoongang/develop
Browse files Browse the repository at this point in the history
Develop to master v1.3
  • Loading branch information
volodymyr-chekyrta authored Sep 22, 2023
2 parents 17bc66d + 1a8cb2a commit 53f8ef6
Show file tree
Hide file tree
Showing 87 changed files with 1,012 additions and 1,223 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @raccoongang/educationx-app-android-reviewers
56 changes: 56 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Bug report for the EducationX Android app
description: Report any issues that you have found with the EducationX Android app. Please [check open issues](https://github.com/raccoongang/educationx-app-android/issues) first, in case it has already been reported.
labels: [Bug]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
Please report security issues by email to [email protected]
- type: textarea
id: reproduction-steps
attributes:
label: Steps to reproduce
description: Please attach screenshots, videos or logs if you can.
placeholder: Tell us what you see!
value: |
1. Where are you starting? What can you see?
2. What do you click?
3. More steps…
validations:
required: true
- type: textarea
id: result
attributes:
label: Outcome
placeholder: Tell us what went wrong
value: |
#### What did you expect?
#### What happened instead?
validations:
required: true
- type: input
id: device
attributes:
label: Your phone model
placeholder: e.g. Samsung Galaxy S10
validations:
required: false
- type: input
id: os
attributes:
label: Operating system version
placeholder: e.g. Tiramisu (OS 13), under "software version"
validations:
required: false
- type: input
id: version
attributes:
label: Application version
description: You can find the version information in the Settings of EducationX IOS.
placeholder: |
e.g. Version: v1.2.2
validations:
required: false
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
49 changes: 49 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test

on:
workflow_dispatch:
pull_request: { }
push:
branches: [ main, develop ]

# Enrich gradle.properties for CI/CD
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 4 --warn

jobs:
tests:
name: Runs unit tests
runs-on: ubuntu-latest

# Allow all jobs on main and develop. Just one per PR.
concurrency:
group: ${{ github.ref == 'refs/heads/main' && format('unit-tests-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('unit-tests-develop-{0}', github.sha) || format('unit-tests-{0}', github.ref) }}
cancel-in-progress: true
steps:
- name: ⏬ Checkout with LFS
uses: nschloe/[email protected]
with:
# Ensure we are building the branch and not the branch after being merged on develop
# https://github.com/actions/checkout/issues/881
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
- name: ☕️ Use JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- name: Configure gradle
uses: gradle/[email protected]
with:
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}

- name: Run unit tests
run: ./gradlew testProdReleaseUnitTest $CI_GRADLE_ARG_PROPERTIES

- name: Upload reports
uses: actions/upload-artifact@v3
if: failure()
with:
name: failures
path: app/build/reports/
retention-days: 5
Loading

0 comments on commit 53f8ef6

Please sign in to comment.