-
Notifications
You must be signed in to change notification settings - Fork 31
46 lines (35 loc) · 1.05 KB
/
tests.yml
File metadata and controls
46 lines (35 loc) · 1.05 KB
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
name: Tests
on: ['push', 'pull_request']
jobs:
laravel-tests:
runs-on: ubuntu-latest
name: Laravel API Tests
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: xdebug
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader --working-dir=_api_app
- name: Tests
run: cd _api_app && ./vendor/bin/pest --ci
angular-tests:
runs-on: ubuntu-latest
name: Angular Editor Tests
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: editor/package-lock.json
- name: Install Dependencies
run: cd editor && npm ci
- name: Run Tests
run: cd editor && npm test -- --watch=false --browsers=ChromeHeadless