From bd6ff38e9427b84efd0e4ff1467aeeb698972aed Mon Sep 17 00:00:00 2001
From: MyungJoo Ham <myungjoo.ham@samsung.com>
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 <myungjoo.ham@samsung.com>
---
 .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..4f0447d5dd
--- /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@v41
+        with:
+          since_last_remote_commit: true
+      - name: List all files changed
+        env:
+          ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
+        run: |
+          for file in "$ALL_CHANGED_FILES"; do
+            echo "$file was changed"
+          done