Skip to content

Commit e317933

Browse files
committed
PHP 8.2 Tests
1 parent 881dabc commit e317933

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/PHP8.2.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "PHP 8.2 Tests"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
php: [8.2]
13+
14+
name: PHP${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: composer install
29+
30+
- name: Create Environment file and generate app key
31+
run: |
32+
cp .env.example .env
33+
34+
php artisan key:generate
35+
36+
- name: Create database and run migration
37+
run: |
38+
touch database/hydra.sqlite
39+
php artisan migrate
40+
php artisan db:seed
41+
42+
- name: Execute tests
43+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)