From a443c500510e7e9f271d1ae0feea9cc77d5ea084 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Fri, 12 Jan 2024 17:45:27 +0900 Subject: [PATCH] actions: add static checks Add static checkers & verifiers to github-actions. Signed-off-by: MyungJoo Ham --- .github/workflows/static.check.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/static.check.yml diff --git a/.github/workflows/static.check.yml b/.github/workflows/static.check.yml new file mode 100644 index 0000000000..3b0c4f4c0b --- /dev/null +++ b/.github/workflows/static.check.yml @@ -0,0 +1,27 @@ +name: Static checkers and verifiers + +on: + pull_request: + branches: [ main ] + push: + +jobs: + simple_script_checkers: + runs-on: ubuntu-latest + name: Fetching changes + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 5 + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@41 + with: + since_last_remote_commit: true + - name: List all files changed + env: + ALL_CHANGED_FILES: ${{ stepd.changed-files.outputs.all_changed_files }} + run: | + for file in "$ALL_CHANGED_FILES"; do + echo "$file was changed" + done