2022-05-02 16:11:15 +02:00
|
|
|
name: Tests
|
|
|
|
|
2022-09-20 15:19:54 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- '*.x'
|
|
|
|
pull_request:
|
2022-09-20 17:01:46 +02:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2022-09-20 15:19:54 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
2022-05-02 16:11:15 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2022-10-04 15:30:48 +02:00
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
2025-01-07 21:04:38 -03:00
|
|
|
php: [8.2, 8.3, 8.4]
|
2022-10-04 15:30:48 +02:00
|
|
|
|
|
|
|
name: PHP ${{ matrix.php }}
|
|
|
|
|
2022-05-02 16:11:15 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-10-17 14:17:21 +01:00
|
|
|
uses: actions/checkout@v4
|
2022-05-02 16:11:15 +02:00
|
|
|
|
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
2022-10-04 15:30:48 +02:00
|
|
|
php-version: ${{ matrix.php }}
|
2022-05-02 16:11:15 +02:00
|
|
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
|
|
|
|
coverage: none
|
|
|
|
|
|
|
|
- name: Install Composer dependencies
|
2022-10-04 15:48:17 +02:00
|
|
|
run: composer install --prefer-dist --no-interaction --no-progress
|
2022-05-02 16:11:15 +02:00
|
|
|
|
|
|
|
- name: Copy environment file
|
|
|
|
run: cp .env.example .env
|
|
|
|
|
|
|
|
- name: Generate app key
|
|
|
|
run: php artisan key:generate
|
|
|
|
|
|
|
|
- name: Execute tests
|
|
|
|
run: vendor/bin/phpunit
|