File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 42
42
43
43
sanity-check :
44
44
name : Sanity Check
45
- needs : [ code-style ]
45
+ needs : [code-style]
46
46
runs-on : ubuntu-latest
47
47
timeout-minutes : 10
48
48
steps :
@@ -58,17 +58,17 @@ jobs:
58
58
steps :
59
59
- uses : actions/checkout@v4
60
60
with :
61
- fetch-depth : ' 2000'
61
+ fetch-depth : " 2000"
62
62
- name : Check File Changes
63
63
id : filter
64
64
run : |
65
65
# Navigate to the frontend directory
66
66
cd seatunnel/seatunnel-engine/seatunnel-ui
67
-
67
+
68
68
# Use git to find changed files in the frontend directory
69
69
git fetch origin
70
70
CHANGED_FILES=$(git diff --name-only origin/main...HEAD | grep "^seatunnel/seatunnel-engine/seatunnel-ui/")
71
-
71
+
72
72
# If there are changes, list the affected modules
73
73
if [ -n "$CHANGED_FILES" ]; then
74
74
echo "modules=true" >> $GITHUB_OUTPUT
77
77
fi
78
78
79
79
unit-test :
80
- needs : [ changes, sanity-check ]
80
+ needs : [changes, sanity-check]
81
81
if : needs.changes.outputs.frontend-modules == 'true'
82
82
runs-on : ubuntu-latest
83
83
strategy :
90
90
uses : actions/setup-node@v3
91
91
with :
92
92
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"
98
94
- name : Run Unit Tests
99
95
run : |
100
96
cd ./seatunnel-engine/seatunnel-ui
101
- npm test
97
+ npm run test:unit
You can’t perform that action at this time.
0 commit comments