Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

*Note: Please write your issue only in english*

**Description**
A clear and concise description of what the bug is.

**Steps to reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**
- Device: [e.g. Samsung S20 Ultra 5G]
- Android version: [e.g. Android 11]
- App version: [e.g. 4.0.1]

**Additional context**
Add any other context about the problem here.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

*Note: Please write your issue only in english*

**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.
35 changes: 35 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Android CI

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
if: github.event.pull_request.draft == false
runs-on: [ self-hosted, Android ]

steps:
- name: Checkout the code
uses: actions/checkout@v6.0.2
with:
token: ${{ github.token }}
submodules: recursive

# Setup Gradle and clean
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean

# Build Example and the Library
- name: Build
run: ./gradlew :Example:assembleDebug :Library:build --stacktrace

# Run tests
- name: Run Unit tests
run: ./gradlew testDebugUnitTest --stacktrace

14 changes: 14 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Auto Author Assign

on:
pull_request_target:
types: [ opened, reopened ]

permissions:
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v2.1.0
28 changes: 28 additions & 0 deletions .github/workflows/dependent-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Dependent Issues

on:
issues:
types:
- opened
- edited
- closed
- reopened
pull_request_target:
types:
- opened
- edited
- closed
- reopened
# Makes sure we always add status check for PRs. Useful only if
# this action is required to pass before merging. Otherwise, it
# can be removed.
- synchronize

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: z0al/dependent-issues@v1.5.2
env:
# (Required) The token to use to make API calls to GitHub.
GITHUB_TOKEN: ${{ github.token }}
14 changes: 14 additions & 0 deletions .github/workflows/euria-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Euria Review

on:
pull_request:
types: [opened, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
euria-review:
uses: infomaniak/.github/.github/workflows/euria-review.yml@v2
secrets: inherit
61 changes: 61 additions & 0 deletions .github/workflows/rebase-default-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Rebases a pull request on the repo's default branch when the "rebase" label is added
# Link: https://github.com/Infomaniak/.github/blob/main/workflow-templates/rebase-default-branch.yml

name: Rebase Pull Request

on:
pull_request:
types: [ labeled ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}

jobs:
main:
if: ${{ contains(github.event.*.labels.*.name, 'rebase') }}
name: Rebase
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

# Context: https://httgp.com/signing-commits-in-github-actions
# Link: https://github.com/crazy-max/ghaction-import-gpg/releases
- name: Import bot's GPG key for signing commits
id: import-gpg
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
with:
gpg_private_key: ${{ secrets.BOT_MOBILE_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.BOT_MOBILE_GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true

- name: perform rebase
run: |
git config --global user.name "dev-mobile-bot"
git config --global user.email "mobile+github-bot@infomaniak-dev.ch"
git status
git pull
git checkout "$DEFAULT_BRANCH"
git status
git pull
git checkout "$GITHUB_HEAD_REF"
git rebase "$DEFAULT_BRANCH"
git push --force-with-lease
git status

# Context: https://github.com/marketplace/actions/actions-ecosystem-remove-labels
# Link: https://github.com/actions-ecosystem/action-remove-labels/releases
- name: remove label
if: always()
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0
with:
labels: rebase
23 changes: 23 additions & 0 deletions .github/workflows/semantic-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'PR and Commit Message Check'
on:
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize

jobs:
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- name: Check Commit Message
uses: gsactions/commit-message-checker@v2
with:
pattern: '^Merge .+|(^(feat|fix|chore|docs|style|refactor|perf|ci|test)(\(.+\))?: [A-Z0-9].+)'
error: 'Commit messages and PR title should match conventional commit convention and start with an uppercase.'
excludeDescription: 'true'
excludeTitle: 'false'
checkAllCommitMessages: 'true'
accessToken: ${{ secrets.GITHUB_TOKEN }}
Loading