-
Notifications
You must be signed in to change notification settings - Fork 45
63 lines (51 loc) · 1.59 KB
/
tests.yml
File metadata and controls
63 lines (51 loc) · 1.59 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Tests
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3, 8.4]
name: PHP ${{ matrix.php }}
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl, pdo_sqlite
coverage: none
ini-values: memory_limit=512M
- name: Install October CMS
run: |
composer create-project october/october october --no-interaction --no-progress
- name: Configure environment
run: |
cd october
mkdir -p database && touch database/database.sqlite
sed -i 's/DB_CONNECTION=.*/DB_CONNECTION=sqlite/' .env
sed -i 's|DB_DATABASE=.*|DB_DATABASE=database/database.sqlite|' .env
- name: Set license key
run: |
cd october
php artisan project:set ${{ secrets.OCTOBER_LICENSE_KEY }} --no-interaction
- name: Migrate core tables
run: |
cd october
php artisan october:migrate --no-interaction
- name: Checkout plugin
uses: actions/checkout@v4
with:
path: october/plugins/responsiv/pay
- name: Install plugin dependencies and migrate
run: |
cd october
php artisan plugin:check --no-interaction
- name: Run tests
run: |
cd october
php vendor/bin/phpunit --configuration plugins/responsiv/pay/phpunit.xml