-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into foreground-background
- Loading branch information
Showing
377 changed files
with
47,403 additions
and
12,943 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
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 |
---|---|---|
|
@@ -3,25 +3,44 @@ | |
# https://github.com/nextcloud/.github | ||
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
|
||
name: Rebase command | ||
|
||
on: | ||
issue_comment: | ||
types: [ created ] | ||
name: Automatic Rebase | ||
types: created | ||
|
||
jobs: | ||
rebase: | ||
name: Rebase | ||
runs-on: ubuntu-latest | ||
|
||
# On pull requests and if the comment starts with `/rebase` | ||
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Add reaction on start | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
token: ${{ secrets.COMMAND_BOT_PAT }} | ||
repository: ${{ github.event.repository.full_name }} | ||
comment-id: ${{ github.event.comment.id }} | ||
reaction-type: "+1" | ||
|
||
- name: Checkout the latest code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
token: ${{ secrets.COMMAND_BOT_PAT }} | ||
|
||
- name: Automatic Rebase | ||
uses: cirrus-actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }} | ||
|
||
- name: Add reaction on failure | ||
uses: peter-evans/create-or-update-comment@v1 | ||
if: failure() | ||
with: | ||
token: ${{ secrets.COMMAND_BOT_PAT }} | ||
repository: ${{ github.event.repository.full_name }} | ||
comment-id: ${{ github.event.comment.id }} | ||
reaction-type: "-1" |
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,50 @@ | ||
name: SonarCloud analysis | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/nextcloud/continuous-integration-client:client-5.15-4 | ||
env: | ||
SONAR_SERVER_URL: "https://sonarcloud.io" | ||
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
- name: Restore cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: /cache | ||
key: ${{ runner.os }} | ||
|
||
- name: Run build-wrapper | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 -DBUILD_UPDATER=ON -DBUILD_TESTING=1 -DBUILD_COVERAGE=ON | ||
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make -j 2 | ||
- name: Run tests | ||
run: | | ||
cd build | ||
useradd -m -s /bin/bash test | ||
chown -R test:test . | ||
su -c 'xvfb-run ctest --output-on-failure --output-junit testResult.xml' test | ||
- name: Generate coverage report | ||
run: | | ||
cd build | ||
su -c 'ctest -T Coverage' test | ||
- name: Run sonar-scanner | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: | | ||
cp sonar-project.properties build | ||
cd build | ||
sonar-scanner --define sonar.host.url="${{ env.SONAR_SERVER_URL }}" --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[Desktop Entry] | ||
Categories=Utility;X-SuSE-SyncUtility; | ||
Type=Application | ||
Exec=@APPLICATION_EXECUTABLE@ | ||
Name=@APPLICATION_NAME@ Desktop | ||
Comment=@APPLICATION_NAME@ desktop synchronization client | ||
GenericName=Folder Sync | ||
Icon=@APPLICATION_ICON_NAME@ | ||
Keywords=@APPLICATION_NAME@;syncing;file;sharing; | ||
X-GNOME-Autostart-Delay=3 | ||
MimeType=application/vnd.@APPLICATION_EXECUTABLE@; | ||
Actions=Quit; | ||
|
||
# Translations | ||
|
||
|
||
[Desktop Action Quit] | ||
Exec=@APPLICATION_EXECUTABLE@ --quit | ||
Name=Quit @APPLICATION_NAME@ | ||
Icon=@APPLICATION_EXECUTABLE@ | ||
|
||
|
||
# Translations | ||
Icon[vi]=@APPLICATION_ICON_NAME@ | ||
Name[vi]=@APPLICATION_NAME@ Máy tính | ||
Comment[vi]=Ứng dụng đồng bộ @APPLICATION_NAME@ cho máy tính | ||
GenericName[vi]=Đồng bộ thư mục |
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.