-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into chore/enable_reactions
- Loading branch information
Showing
140 changed files
with
6,245 additions
and
3,559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gradle" | ||
open-pull-requests-limit: 1 | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
reviewers: | ||
- "wireapp/android" | ||
|
||
- package-ecosystem: "github-actions" | ||
open-pull-requests-limit: 1 | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
reviewers: | ||
- "wireapp/android" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: "Cherry-pick from rc to develop" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- release/candidate | ||
types: | ||
- closed | ||
|
||
jobs: | ||
cherry-pick: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Append -cherry-pick to branch name | ||
id: extract | ||
run: | | ||
PR_BRANCH="${{ github.event.pull_request.head.ref }}" | ||
NEW_BRANCH_NAME="${PR_BRANCH}-cherry-pick" | ||
echo "New branch name: $NEW_BRANCH_NAME" | ||
echo "::set-output name=newBranchName::$NEW_BRANCH_NAME" | ||
- name: Check if changes only in kalium submodule | ||
id: check_changes | ||
run: | | ||
NUM_CHANGES=$(git diff origin/develop --name-only | grep -v '^kalium/' | wc -l) | ||
if [ "$NUM_CHANGES" -gt 0 ]; then | ||
echo "::set-output name=shouldCherryPick::true" | ||
else | ||
echo "No changes outside of kalium submodule, skipping cherry-pick" | ||
echo "::set-output name=shouldCherryPick::false" | ||
fi | ||
- uses: fregante/setup-git-user@v2 | ||
|
||
- name: Cherry-pick commits | ||
if: steps.check_changes.outputs.shouldCherryPick == 'true' | ||
run: | | ||
git fetch origin develop:develop | ||
git checkout -b ${{ steps.extract.outputs.newBranchName }} develop | ||
# Cherry-picking the last commit on the base branch | ||
git cherry-pick -x ${{ github.event.pull_request.merge_commit_sha }} --strategy-option theirs || true | ||
git add . | ||
git cherry-pick --continue || true | ||
git push origin ${{ steps.extract.outputs.newBranchName }} | ||
- name: Create PR | ||
if: steps.check_changes.outputs.shouldCherryPick == 'true' | ||
env: | ||
PR_TITLE: ${{ github.event.pull_request.title }} | ||
PR_BRANCH: ${{ steps.extract.outputs.newBranchName }} | ||
PR_ASSIGNEE: ${{ github.event.pull_request.user.login }} | ||
PR_BODY: "${{ format('Cherry pick from the original PR: \n- #{0}\n\n ---- \n{1}', github.event.pull_request.number, github.event.pull_request.body) }}" | ||
run: gh pr create --title "$PR_TITLE" --body "$PR_BODY" --base develop --head $PR_BRANCH --label "cherry-pick" --assignee "$PR_ASSIGNEE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,8 @@ jobs: | |
cache: gradle | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | ||
uses: gradle/wrapper-validation-action@8d49e559aae34d3e0eb16cde532684bc9702762b | ||
|
||
- name: Gradle cache | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
|
@@ -51,32 +51,35 @@ jobs: | |
- name: Install Pip for test result publishing | ||
run: sudo apt-get install -y python3-pip | ||
|
||
- name: Publish Unit Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/[email protected] | ||
# Uploads test results as GitHub artifacts, so publish-test-results can find them later. | ||
- name: Upload Test Results | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
files: | | ||
# This name is referenced in the publish-test-results workflow. | ||
name: test-results | ||
path: | | ||
**/build/test-results/testDevDebugUnitTest/**/*.xml | ||
**/build/test-results/**/*.xml | ||
**/build/outputs/androidTest-results/**/*.xml | ||
- name: Generate report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: report | ||
path: app/build/reports/jacoco | ||
- name: Generate report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: report | ||
path: app/build/reports/jacoco | ||
|
||
- name: Download Test Reports Folder | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: report | ||
path: app/build/reports/jacoco | ||
- name: Download Test Reports Folder | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: report | ||
path: app/build/reports/jacoco | ||
|
||
- name: Upload Test Report | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: "app/build/reports/jacoco/jacocoReport/jacocoReport.xml" | ||
|
||
- name: Upload Test Report | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: "app/build/reports/jacoco/jacocoReport/jacocoReport.xml" | ||
|
||
- name: Cleanup Gradle Cache | ||
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | ||
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | ||
|
@@ -98,3 +101,13 @@ jobs: | |
with: | ||
flavour: "dev-debug" | ||
|
||
event_file: | ||
# This name is referenced in the publish-test-results workflow. | ||
name: "Upload Event File" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Upload | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Event File | ||
path: ${{ github.event_path }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: Auto assign author to PR | ||
on: | ||
pull_request: | ||
types: [ opened ] | ||
pull_request_target: | ||
types: [ opened ] | ||
|
||
jobs: | ||
assign-author: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: samspills/[email protected].1 | ||
- uses: samspills/[email protected].2 | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish Test Results | ||
|
||
# Takes the artifacts uploaded by run-unit-tests and publishes them in PRs as a comment. | ||
# This is needed in order to support PRs created from forks, as PRs from Forks or Dependabot | ||
# run in read-only mode and can't comment on PRs, for example. | ||
# More context here: https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/ | ||
# This work-around makes it so that: | ||
# - this workflow is triggered by the end of the test workflow, instead | ||
# of being triggered directly by the PR | ||
# - we can control the permissions to only have what's needed to write comments, etc. | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Run Unit Tests] | ||
types: | ||
- completed | ||
permissions: {} | ||
|
||
jobs: | ||
test-results: | ||
name: Publish Test Results | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion != 'skipped' | ||
|
||
# Limit permissions to only what's needed | ||
permissions: | ||
checks: write | ||
|
||
# needed to write the PR comment with the results | ||
pull-requests: write | ||
# required in order to download step to access artifacts API | ||
actions: read | ||
|
||
steps: | ||
- name: Download and Extract Artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
run_id: ${{ github.event.workflow_run.id }} | ||
path: artifacts | ||
|
||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
commit: ${{ github.event.workflow_run.head_sha }} | ||
event_file: artifacts/Event File/event.json | ||
event_name: ${{ github.event.workflow_run.event }} | ||
files: "artifacts/test-results/**/*.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.