-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (36 loc) · 1.23 KB
/
browser-tests.js.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
43
44
45
46
47
48
49
name: Browser tests
on:
push:
branches: [ main ]
pull_request:
jobs:
browser-tests:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/[email protected]
with:
repository: wbstack/api
path: api
- run: cp .env.example .env
working-directory: api
- run: docker run --rm -v .:/app -u $(id -u):$(id -g) composer install --ignore-platform-req=ext-pcntl
working-directory: api
- run: docker compose up -d
working-directory: api
- run: sleep 10
- run: docker compose exec api bash -c 'php artisan migrate:fresh && php artisan passport:install && php artisan db:seed && php artisan key:generate && php artisan storage:link'
working-directory: api
- uses: actions/[email protected]
with:
path: ui
- run: cp .env.development.test .env
working-directory: ui
- run: sudo chown -R 1000:1000 .
working-directory: ui
- run: docker compose run --rm ui npm install
working-directory: ui
- run: docker compose --profile browser-tests up -d --wait
working-directory: ui
- run: docker compose exec -it ui npm run test:e2e
working-directory: ui