From 0521b0a092ff7896ad8c6c5b0bec0be90e1203e7 Mon Sep 17 00:00:00 2001 From: Sunny Jiao <> Date: Fri, 24 Jan 2025 13:19:14 +0800 Subject: [PATCH] add workflow lint --- .github/workflows/codeql.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..81151e9 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,17 @@ +name: Lint sources +run-name: Lint sources + +on: + push: + pull_request: + branches: [main, develop] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Lint sources + run: | + sudo apt-get update && sudo apt-get install -y pre-commit + pre-commit run --all-files