summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-04-02 22:48:16 +0800
committerGitHub <[email protected]>2021-04-02 22:48:16 +0800
commitde1df3e308f488cbf285905a4f92da9aaef68430 (patch)
tree2d9e946fae3dd3455838125cdb5624cdf7baa0c1 /.github
parent199f73c72d8dfb4463760d0fb19787c2dba23a26 (diff)
parenteedf97fa66d21e4207be246bef115919ee7beafd (diff)
Merge pull request #4560 from thread-liu/liukang
[add] .c/.h file format check and license check.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/file_check.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/file_check.yml b/.github/workflows/file_check.yml
new file mode 100644
index 0000000000..90576c4eda
--- /dev/null
+++ b/.github/workflows/file_check.yml
@@ -0,0 +1,20 @@
+name: Check File Format and License
+
+on: [pull_request]
+
+jobs:
+ scancode_job:
+ runs-on: ubuntu-latest
+ name: Scan code format and license
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python
+ uses: actions/setup-python@master
+ with:
+ python-version: 3.8
+
+ - name: Check Format and License
+ shell: bash
+ run: |
+ pip install click chardet
+ python tools/file_check.py check 'https://github.com/RT-Thread/rt-thread' 'master'