File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [main, master, develop]
6+ pull_request :
7+ branches : [main, master, develop]
8+
9+ jobs :
10+ tests :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ fail-fast : true
15+ matrix :
16+ php : [8.2, 8.3, 8.4]
17+
18+ name : PHP ${{ matrix.php }}
19+
20+ steps :
21+ - name : Setup PHP
22+ uses : shivammathur/setup-php@v2
23+ with :
24+ php-version : ${{ matrix.php }}
25+ extensions : mbstring, intl, pdo_sqlite
26+ coverage : none
27+ ini-values : memory_limit=512M
28+
29+ - name : Install October CMS
30+ run : |
31+ composer create-project october/october october --no-interaction --no-progress
32+
33+ - name : Configure environment
34+ run : |
35+ cd october
36+ mkdir -p database && touch database/database.sqlite
37+ sed -i 's/DB_CONNECTION=.*/DB_CONNECTION=sqlite/' .env
38+ sed -i 's|DB_DATABASE=.*|DB_DATABASE=database/database.sqlite|' .env
39+
40+ - name : Set license key
41+ run : |
42+ cd october
43+ php artisan project:set ${{ secrets.OCTOBER_LICENSE_KEY }} --no-interaction
44+
45+ - name : Migrate core tables
46+ run : |
47+ cd october
48+ php artisan october:migrate --no-interaction
49+
50+ - name : Checkout plugin
51+ uses : actions/checkout@v4
52+ with :
53+ path : october/plugins/responsiv/pay
54+
55+ - name : Install plugin dependencies and migrate
56+ run : |
57+ cd october
58+ php artisan plugin:check --no-interaction
59+
60+ - name : Run tests
61+ run : |
62+ cd october
63+ php vendor/bin/phpunit --configuration plugins/responsiv/pay/phpunit.xml
You can’t perform that action at this time.
0 commit comments