Skip to content

Commit b88bebc

Browse files
committed
[Feature][Engine UI] modify ui.yml
1 parent 3d3dabc commit b88bebc

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

Diff for: .github/workflows/ui.yml

+7-11
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
4343
sanity-check:
4444
name: Sanity Check
45-
needs: [ code-style ]
45+
needs: [code-style]
4646
runs-on: ubuntu-latest
4747
timeout-minutes: 10
4848
steps:
@@ -58,17 +58,17 @@ jobs:
5858
steps:
5959
- uses: actions/checkout@v4
6060
with:
61-
fetch-depth: '2000'
61+
fetch-depth: "2000"
6262
- name: Check File Changes
6363
id: filter
6464
run: |
6565
# Navigate to the frontend directory
6666
cd seatunnel/seatunnel-engine/seatunnel-ui
67-
67+
6868
# Use git to find changed files in the frontend directory
6969
git fetch origin
7070
CHANGED_FILES=$(git diff --name-only origin/main...HEAD | grep "^seatunnel/seatunnel-engine/seatunnel-ui/")
71-
71+
7272
# If there are changes, list the affected modules
7373
if [ -n "$CHANGED_FILES" ]; then
7474
echo "modules=true" >> $GITHUB_OUTPUT
@@ -77,7 +77,7 @@ jobs:
7777
fi
7878
7979
unit-test:
80-
needs: [ changes, sanity-check ]
80+
needs: [changes, sanity-check]
8181
if: needs.changes.outputs.frontend-modules == 'true'
8282
runs-on: ubuntu-latest
8383
strategy:
@@ -90,12 +90,8 @@ jobs:
9090
uses: actions/setup-node@v3
9191
with:
9292
node-version: ${{ matrix.node-version }}
93-
cache: 'npm'
94-
- name: Install Dependencies
95-
run: |
96-
cd ./seatunnel-engine/seatunnel-ui
97-
npm ci
93+
cache: "npm"
9894
- name: Run Unit Tests
9995
run: |
10096
cd ./seatunnel-engine/seatunnel-ui
101-
npm test
97+
npm run test:unit

0 commit comments

Comments
 (0)