Spaces:
Running
Running
Download .github/workflows/frontend-tests.yml from axeronis/microfunnel-api: direct link, hf CLI and curl.
- Browser
- Download file 827 Bytes
-
https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/.github/workflows/frontend-tests.yml
- Command line
-
hf download hf://spaces/axeronis/microfunnel-api/.github/workflows/frontend-tests.yml
-
curl -L -o frontend-tests.yml https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/.github/workflows/frontend-tests.yml
827 Bytes
| name: Frontend Tests | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| paths: | |
| - 'frontend/**' | |
| - '.github/workflows/frontend-tests.yml' | |
| pull_request: | |
| branches: [ main, develop ] | |
| paths: | |
| - 'frontend/**' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| working-directory: ./frontend | |
| run: npm ci | |
| - name: Run linter | |
| working-directory: ./frontend | |
| run: npm run lint | |
| - name: Build | |
| working-directory: ./frontend | |
| env: | |
| NEXT_PUBLIC_API_URL: http://localhost:8000 | |
| run: npm run build | |