mirror of
https://github.com/Inside4ndroid/TMDB-Embed-API.git
synced 2026-10-22 17:45:11 +00:00
Merge branch 'main' of https://github.com/Inside4ndroid/TMDB-Embed-API
This commit is contained in:
@@ -23,13 +23,36 @@ jobs:
|
|||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
|
# Optional: Start your app if needed
|
||||||
|
# - name: Start API
|
||||||
|
# run: npm run start &
|
||||||
|
|
||||||
|
# Optional: Wait for it to be ready
|
||||||
|
# - name: Wait for API to be ready
|
||||||
|
# run: |
|
||||||
|
# timeout 60 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:3000)" != "200" ]]; do sleep 1; done'
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: npm run test:ci
|
run: npm run test:ci
|
||||||
|
|
||||||
- name: Upload test results
|
# - name: Upload test results
|
||||||
|
# if: always()
|
||||||
|
# uses: actions/upload-artifact@v3.1.3
|
||||||
|
# with:
|
||||||
|
# name: jest-test-results-${{ matrix.node-version }}
|
||||||
|
# path: test-results/junit.xml
|
||||||
|
|
||||||
|
# Optional: Show test output log (if you use one)
|
||||||
|
- name: Show test log
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
run: |
|
||||||
with:
|
cat jest.log || echo "No jest.log found"
|
||||||
name: jest-test-results-${{ matrix.node-version }}
|
|
||||||
path: test-results/junit.xml
|
# Optional: Upload log as artifact for debugging
|
||||||
|
# - name: Upload jest log
|
||||||
|
# if: always()
|
||||||
|
# uses: actions/upload-artifact@v3.1.3
|
||||||
|
# with:
|
||||||
|
# name: jest-log-${{ matrix.node-version }}
|
||||||
|
# path: jest.log
|
||||||
|
|||||||
Reference in New Issue
Block a user