MiniSearch / .github /workflows /reusable-test-lint-ping.yml
github-actions[bot]
Sync to HuggingFace Spaces
c837b7c
raw
history blame contribute delete
779 Bytes
on:
workflow_call:
jobs:
check-code-quality:
name: Check Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci --ignore-scripts
- run: npm test
- run: npm run lint
check-docker-container:
needs: [check-code-quality]
name: Check Docker Container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker compose -f docker-compose.production.yml up -d
- name: Check if main page is available
run: until curl -s -o /dev/null -w "%{http_code}" localhost:7860 | grep 200; do sleep 1; done
- run: docker compose -f docker-compose.production.yml down