-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1015 Bytes
/
test-crawlab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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