File tree 4 files changed +85
-0
lines changed
4 files changed +85
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This isn't actually a Linux kernel tree
2
+ --no-tree
3
+
4
+ --ignore FILE_PATH_CHANGES
5
+ --ignore COMPLEX_MACRO
6
+ --ignore NEW_TYPEDEFS
7
+ --ignore CONST_STRUCT
8
+ --ignore SPDX_LICENSE_TAG
Original file line number Diff line number Diff line change
1
+ license :
2
+ main : apache-2.0
3
+ report_missing : true
4
+ category : Permissive
5
+ copyright :
6
+ check : true
7
+ exclude :
8
+ extensions :
9
+ - yml
10
+ - yaml
11
+ - html
12
+ - rst
13
+ - conf
14
+ - cfg
15
+ langs :
16
+ - HTML
Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : CI
4
+
5
+ # Controls when the workflow will run
6
+ on :
7
+ # Triggers the workflow on push or pull request events but only for the "main" branch
8
+ push :
9
+ branches : [ "main" ]
10
+ pull_request :
11
+ branches : [ "main" ]
12
+
13
+ # Allows you to run this workflow manually from the Actions tab
14
+ workflow_dispatch :
15
+
16
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
17
+ jobs :
18
+ # This workflow contains a single job called "build"
19
+ build :
20
+ # The type of runner that the job will run on
21
+ runs-on : ubuntu-latest
22
+
23
+ # Steps represent a sequence of tasks that will be executed as part of the job
24
+ steps :
25
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26
+ - uses : actions/checkout@v3
27
+ - name : checkpatch.pl PR review
28
+ uses : webispy/checkpatch-action@v8
29
+
Original file line number Diff line number Diff line change
1
+ name : Scancode
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ scancode_job :
7
+ runs-on : ubuntu-20.04
8
+ name : Scan code for licenses
9
+ steps :
10
+ - name : Checkout the code
11
+ uses : actions/checkout@v1
12
+ - name : Scan the code
13
+ id : scancode
14
+ uses : zephyrproject-rtos/action_scancode@v4
15
+ with :
16
+ directory-to-scan : ' scan/'
17
+ - name : Artifact Upload
18
+ uses : actions/upload-artifact@v1
19
+ with :
20
+ name : scancode
21
+ path : ./artifacts
22
+
23
+ - name : Verify
24
+ run : |
25
+ if [ -s ./artifacts/report.txt ]; then
26
+ report=$(cat ./artifacts/report.txt)
27
+ report="${report//'%'/'%25'}"
28
+ report="${report//$'\n'/'%0A'}"
29
+ report="${report//$'\r'/'%0D'}"
30
+ echo "::error file=./artifacts/report.txt::$report"
31
+ exit 1
32
+ fi
You can’t perform that action at this time.
0 commit comments