File tree Expand file tree Collapse file tree 1 file changed +26
-5
lines changed
.github/actions/setup-and-test Expand file tree Collapse file tree 1 file changed +26
-5
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments