From eedf97fa66d21e4207be246bef115919ee7beafd Mon Sep 17 00:00:00 2001 From: thread-liu Date: Thu, 1 Apr 2021 11:56:01 +0800 Subject: [add] .c/.h file format check and license check --- .github/workflows/file_check.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/file_check.yml (limited to '.github/workflows') 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' -- cgit v1.3.1