Skip to content

Commit a9cfa66

Browse files
committed
2 parents 01d14fc + 00a6d14 commit a9cfa66

1 file changed

Lines changed: 30 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,36 @@ jobs:
2323
cache: 'npm'
2424

2525
- run: npm ci
26-
26+
27+
# Optional: Start your app if needed
28+
# - name: Start API
29+
# run: npm run start &
30+
31+
# Optional: Wait for it to be ready
32+
# - name: Wait for API to be ready
33+
# run: |
34+
# timeout 60 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:3000)" != "200" ]]; do sleep 1; done'
35+
2736
- name: Run Tests
2837
run: npm run test:ci
29-
30-
- name: Upload test results
38+
39+
# - name: Upload test results
40+
# if: always()
41+
# uses: actions/upload-artifact@v3.1.3
42+
# with:
43+
# name: jest-test-results-${{ matrix.node-version }}
44+
# path: test-results/junit.xml
45+
46+
# Optional: Show test output log (if you use one)
47+
- name: Show test log
3148
if: always()
32-
uses: actions/upload-artifact@v3
33-
with:
34-
name: jest-test-results-${{ matrix.node-version }}
35-
path: test-results/junit.xml
49+
run: |
50+
cat jest.log || echo "No jest.log found"
51+
52+
# Optional: Upload log as artifact for debugging
53+
# - name: Upload jest log
54+
# if: always()
55+
# uses: actions/upload-artifact@v3.1.3
56+
# with:
57+
# name: jest-log-${{ matrix.node-version }}
58+
# path: jest.log

0 commit comments

Comments
 (0)