2021-10-08 22:00:01 +00:00
|
|
|
name: Source Code Check
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
schedule:
|
|
|
|
- cron: '25 12 * * 0'
|
|
|
|
|
2022-10-13 23:30:13 +00:00
|
|
|
concurrency:
|
2022-06-25 11:25:13 +00:00
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-10-08 22:00:01 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: ${{ matrix.type }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
type: [source-code-check]
|
|
|
|
fail-fast: false
|
|
|
|
steps:
|
2022-10-13 23:30:13 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-10-08 22:00:01 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
|
|
|
- name: Check source code for illegal symbols
|
|
|
|
if: ${{ success() }}
|
|
|
|
run: |
|
|
|
|
python ./ci_tools/source_code_check.py .
|