-
-
Notifications
You must be signed in to change notification settings - Fork 60
39 lines (29 loc) · 885 Bytes
/
laravel.yml
File metadata and controls
39 lines (29 loc) · 885 Bytes
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
name: Run tests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.5 ]
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
- name: Copy env file
run:
cp .env.test .env
- name: Run composer update
run: composer update --prefer-dist --no-interaction --no-progress --no-scripts
- name: Generate app key
run: |
APP_KEY=$(php -r "echo 'base64:' . base64_encode(random_bytes(32));")
sed -i "s|APP_KEY=.*|APP_KEY=$APP_KEY|" .env
- name: Run tests
run: vendor/bin/phpunit