Spaces:
Paused
Paused
Download .github/workflows/test-services.yml from Lordgrim7/cobalt-api: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/spaces/Lordgrim7/cobalt-api/resolve/main/.github/workflows/test-services.yml
- Command line
-
hf download hf://spaces/Lordgrim7/cobalt-api/.github/workflows/test-services.yml
-
curl -L -o test-services.yml https://huggingface.co/spaces/Lordgrim7/cobalt-api/resolve/main/.github/workflows/test-services.yml
1.22 kB
| name: Run service tests | |
| on: | |
| pull_request: | |
| push: | |
| paths: | |
| - api/** | |
| - packages/** | |
| jobs: | |
| check-services: | |
| name: test service functionality | |
| runs-on: ubuntu-latest | |
| outputs: | |
| services: ${{ steps.checkServices.outputs.service_list }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| - uses: pnpm/action-setup@v4 | |
| - id: checkServices | |
| run: pnpm i --frozen-lockfile && echo "service_list=$(node api/src/util/test get-services)" >> "$GITHUB_OUTPUT" | |
| test-services: | |
| needs: check-services | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| service: ${{ fromJson(needs.check-services.outputs.services) }} | |
| name: "test service: ${{ matrix.service }}" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| - uses: pnpm/action-setup@v4 | |
| - run: pnpm i --frozen-lockfile | |
| - run: node api/src/util/test run-tests-for ${{ matrix.service }} | |
| env: | |
| HTTP_PROXY: ${{ secrets.API_EXTERNAL_PROXY }} | |
| TEST_IGNORE_SERVICES: ${{ vars.TEST_IGNORE_SERVICES }} | |