test: added project list test case #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Crawlab | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
services: | |
crawlab: | |
image: crawlabteam/crawlab:develop | |
ports: | |
- 8080:8080 | |
env: | |
CRAWLAB_NODE_MASTER: "true" | |
CRAWLAB_MONGO_HOST: mongo | |
CRAWLAB_MONGO_PORT: 27017 | |
mongo: | |
image: mongo:latest | |
ports: | |
- 27017:27017 | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install pnpm | |
run: npm i -g pnpm@9 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
- name: Run Playwright tests | |
run: pnpm playwright test | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |