Skip to content

Commit 53f8ef6

Browse files
Merge pull request #49 from raccoongang/develop
Develop to master v1.3
2 parents 17bc66d + 1a8cb2a commit 53f8ef6

File tree

87 files changed

+1012
-1223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1012
-1223
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @raccoongang/educationx-app-android-reviewers

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Bug report for the EducationX Android app
2+
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.
3+
labels: [Bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report!
9+
10+
Please report security issues by email to [email protected]
11+
- type: textarea
12+
id: reproduction-steps
13+
attributes:
14+
label: Steps to reproduce
15+
description: Please attach screenshots, videos or logs if you can.
16+
placeholder: Tell us what you see!
17+
value: |
18+
1. Where are you starting? What can you see?
19+
2. What do you click?
20+
3. More steps…
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: result
25+
attributes:
26+
label: Outcome
27+
placeholder: Tell us what went wrong
28+
value: |
29+
#### What did you expect?
30+
31+
#### What happened instead?
32+
validations:
33+
required: true
34+
- type: input
35+
id: device
36+
attributes:
37+
label: Your phone model
38+
placeholder: e.g. Samsung Galaxy S10
39+
validations:
40+
required: false
41+
- type: input
42+
id: os
43+
attributes:
44+
label: Operating system version
45+
placeholder: e.g. Tiramisu (OS 13), under "software version"
46+
validations:
47+
required: false
48+
- type: input
49+
id: version
50+
attributes:
51+
label: Application version
52+
description: You can find the version information in the Settings of EducationX IOS.
53+
placeholder: |
54+
e.g. Version: v1.2.2
55+
validations:
56+
required: false

.github/ISSUE_TEMPLATE/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/unit_tests.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Test
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request: { }
6+
push:
7+
branches: [ main, develop ]
8+
9+
# Enrich gradle.properties for CI/CD
10+
env:
11+
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
12+
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 4 --warn
13+
14+
jobs:
15+
tests:
16+
name: Runs unit tests
17+
runs-on: ubuntu-latest
18+
19+
# Allow all jobs on main and develop. Just one per PR.
20+
concurrency:
21+
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) }}
22+
cancel-in-progress: true
23+
steps:
24+
- name: ⏬ Checkout with LFS
25+
uses: nschloe/[email protected]
26+
with:
27+
# Ensure we are building the branch and not the branch after being merged on develop
28+
# https://github.com/actions/checkout/issues/881
29+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
30+
- name: ☕️ Use JDK 17
31+
uses: actions/setup-java@v3
32+
with:
33+
distribution: 'temurin' # See 'Supported distributions' for available options
34+
java-version: '17'
35+
- name: Configure gradle
36+
uses: gradle/[email protected]
37+
with:
38+
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
39+
40+
- name: Run unit tests
41+
run: ./gradlew testProdReleaseUnitTest $CI_GRADLE_ARG_PROPERTIES
42+
43+
- name: Upload reports
44+
uses: actions/upload-artifact@v3
45+
if: failure()
46+
with:
47+
name: failures
48+
path: app/build/reports/
49+
retention-days: 5

0 commit comments

Comments
 (0)