+15
-18
.github/workflows/ci.yml
+15
-18
.github/workflows/ci.yml
···
25
25
run_install: false
26
26
- uses: actions/setup-node@v5
27
27
with:
28
-
node-version-file: ".nvmrc"
29
-
cache: "pnpm"
28
+
node-version-file: '.nvmrc'
29
+
cache: 'pnpm'
30
30
31
31
- run: pnpm install --frozen-lockfile && pnpm --filter playground exec playwright install
32
32
- name: Build Projects and Validate Code Formatting
33
33
shell: bash
34
34
run: |
35
-
pnpm run lint
36
-
pnpm run test
37
-
pnpm run build:prod
38
-
# echo "Building Projects"
39
-
# pnpm run build & build_pid=$!
35
+
echo "Building Projects"
36
+
pnpm run build & build_pid=$!
40
37
41
-
# echo "Validating Code Formatting"
42
-
# pnpm run lint & lint_pid=$!
38
+
echo "Validating Code Formatting"
39
+
pnpm run lint & lint_pid=$!
43
40
44
-
# echo "Testing Projects"
45
-
# pnpm run test & test_pid=$!
41
+
echo "Testing Projects"
42
+
pnpm run test & test_pid=$!
46
43
47
-
# wait $build_pid; build_exit_code=$?
48
-
# wait $lint_pid; lint_exit_code=$?
49
-
# wait $test_pid; test_exit_code=$?
44
+
wait $build_pid; build_exit_code=$?
45
+
wait $lint_pid; lint_exit_code=$?
46
+
wait $test_pid; test_exit_code=$?
50
47
51
-
# if [ $build_exit_code -ne 0 ] || [ $lint_exit_code -ne 0 ] || [ $test_exit_code -ne 0 ]; then
52
-
# echo "Build, lint, or test failed. Exiting." >&2
53
-
# exit 1
54
-
# fi
48
+
if [ $build_exit_code -ne 0 ] || [ $lint_exit_code -ne 0 ] || [ $test_exit_code -ne 0 ]; then
49
+
echo "Build, lint, or test failed. Exiting." >&2
50
+
exit 1
51
+
fi