Skip to content

Commit 5361b0d

Browse files
committed
🔧 fix(workflows): ensure consistent action versions in setup-and-test workflow
1 parent 2115824 commit 5361b0d

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

‎.github/actions/setup-and-test/action.yml‎

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
steps:
88
- name: Checkout code
99
uses: actions/checkout@v4
10-
- name: Setup Node.js
10+
- name: Setup CI, Build and Test Package
1111
uses: actions/setup-node@v4
1212
with:
1313
node-version: "lts/*"
@@ -24,11 +24,32 @@ runs:
2424
which pnpm
2525
env | grep -E 'PNPM|NPM|NODE|PATH'
2626
shell: bash
27-
- run: pnpm install --frozen-lockfile
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
2829
shell: bash
29-
# - run: pnpm run lint
30-
# - run: pnpm run build
31-
- run: pnpm vitest --coverage --reporter=verbose
30+
- name: Run lint
31+
run: |
32+
if [ "$RUN_LINT" = "1" ]; then
33+
pnpm run lint
34+
else
35+
echo "Skipping lint. Set RUN_LINT=1 to enable."
36+
fi
37+
shell: bash
38+
- name: Run build
39+
run: |
40+
if [ "$RUN_BUILD" = "1" ]; then
41+
pnpm run build
42+
else
43+
echo "Skipping build. Set RUN_BUILD=1 to enable."
44+
fi
45+
shell: bash
46+
- name: Run tests
47+
run: |
48+
if [ "$RUN_TEST" = "0" ]; then
49+
echo "Skipping tests. Set RUN_TEST=1 to enable."
50+
else
51+
pnpm vitest --coverage --reporter=verbose
52+
fi
3253
env:
3354
SMOKE: 1
3455
DEBUG: 1

0 commit comments

Comments
 (0)