From e5abd7fc1140685aa7880b908849f2a0637f7092 Mon Sep 17 00:00:00 2001 From: Zhe Li Date: Sat, 11 Jul 2026 17:25:58 +0200 Subject: [PATCH 1/2] ci: add static analysis workflow for e2e-milestone1.sh syntax Run bash -n on scripts/e2e-milestone1.sh when the script or workflow changes on pull requests and main pushes. --- .github/workflows/static-analysis.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/static-analysis.yml diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml new file mode 100644 index 00000000..d97d6a63 --- /dev/null +++ b/.github/workflows/static-analysis.yml @@ -0,0 +1,29 @@ +name: static analysis + +on: + pull_request: + paths: + - "scripts/e2e-milestone1.sh" + - ".github/workflows/static-analysis.yml" + push: + branches: + - main + paths: + - "scripts/e2e-milestone1.sh" + - ".github/workflows/static-analysis.yml" + +permissions: + contents: read + +jobs: + e2e-milestone1-shell: + name: e2e-milestone1.sh syntax + runs-on: [self-hosted, Linux] + + steps: + - name: Check out repository + # actions/checkout@v5 + uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd + + - name: Validate e2e-milestone1.sh syntax + run: bash -n scripts/e2e-milestone1.sh From b37fd979b5bbd89479b44fd8dc4996ea1272c532 Mon Sep 17 00:00:00 2001 From: Zhe Li Date: Sat, 11 Jul 2026 17:26:59 +0200 Subject: [PATCH 2/2] Change workflow name to 'Static Analysis' --- .github/workflows/static-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index d97d6a63..9e84977d 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,4 +1,4 @@ -name: static analysis +name: Static Analysis on: pull_request: