forked from bluez/bluez
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds workflow files for ci: [schedule_work.yml] - runs every 30 mins. - sync repo with upstream repo and rebase workflow branch to tip of master. - creates PR after reading patches from patchwork.kernel.org [ci.yml] - Run the following tests: - checkpatch - gitlint - make - make check [code_scan.yml] - Static code checks - Runs Coverity, Clang code scan, and Cppcheck
- Loading branch information
Showing
3 changed files
with
84 additions
and
0 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,21 @@ | ||
name: CI | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
name: CI for Pull Request | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: src | ||
|
||
- name: CI | ||
uses: tedd-an/action-ci@dev | ||
with: | ||
src_path: src | ||
github_token: ${{ secrets.ACTION_TOKEN }} | ||
email_token: ${{ secrets.EMAIL_TOKEN }} | ||
patchwork_token : ${{ secrets.PATCHWORK_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,26 @@ | ||
name: Code Scan | ||
|
||
on: | ||
schedule: | ||
- cron: "10 7 * * FRI" | ||
|
||
jobs: | ||
code-scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the source | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
path: src | ||
- name: Code Scan | ||
uses: tedd-an/action-code-scan@dev | ||
with: | ||
src_path: src | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
email_token: ${{ secrets.EMAIL_TOKEN }} | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: scan_report | ||
path: scan_report.tar.gz | ||
|
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,37 @@ | ||
name: Scheduled Work | ||
|
||
on: | ||
schedule: | ||
- cron: "15,45 * * * *" | ||
|
||
jobs: | ||
|
||
manage_repo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Manage Repo | ||
uses: tedd-an/action-manage-repo@master | ||
with: | ||
src_repo: "bluez/bluez" | ||
src_branch: "master" | ||
dest_branch: "master" | ||
workflow_branch: "workflow" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
create_pr: | ||
needs: manage_repo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Patchwork to PR | ||
uses: tedd-an/action-patchwork-to-pr@master | ||
with: | ||
base_branch: "workflow" | ||
github_token: ${{ secrets.ACTION_TOKEN }} |