Skip to content

Commit 54fc8b6

Browse files
Copilotyi-nuo426
andcommitted
Improve npm pack pattern and test script detection
Co-authored-by: yi-nuo426 <218099172+yi-nuo426@users.noreply.github.com>
1 parent b32934d commit 54fc8b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/test-meshery-integration.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
working-directory: sistent
3737
run: |
3838
npm pack
39-
echo "SISTENT_PACKAGE=$(ls *.tgz)" >> $GITHUB_ENV
39+
SISTENT_PACKAGE=$(ls sistent-sistent-*.tgz | head -n 1)
40+
echo "SISTENT_PACKAGE=$SISTENT_PACKAGE" >> $GITHUB_ENV
4041
4142
- name: Checkout Meshery UI
4243
uses: actions/checkout@v6
@@ -62,7 +63,7 @@ jobs:
6263
- name: Run Meshery UI Tests
6364
working-directory: meshery/ui
6465
run: |
65-
if grep -q '"test"' package.json; then
66+
if grep -q '"test"\s*:' package.json; then
6667
npm run test -- --passWithNoTests
6768
else
6869
echo "No tests found in Meshery UI, skipping test step"

0 commit comments

Comments
 (0)