Skip to content

0.10 private sev metadata #1389

0.10 private sev metadata

0.10 private sev metadata #1389

Workflow file for this run

name: PhpUnit
on: ["push", "pull_request"]
jobs:
laravel-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.2']
pg-gis-combo: ['14-3.4-alpine', '15-3.4-alpine']
databases: ['pgsql']
name: phpunit-php${{matrix.php-versions}}-${{matrix.databases}}-postgis${{matrix.pg-gis-combo}}
services:
postgres:
image: postgis/postgis:${{matrix.pg-gis-combo}}
ports:
- 5432:5432/tcp
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: rootpassword
POSTGRES_DB: spacialist_tests
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.php-versions}}
coverage: xdebug
- name: Install required packages
run: |
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt update
sudo apt -y install gdal-bin
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.phpunit', '.env');"
- name: Update Composer
run: composer update
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate keys
run: |
php artisan key:generate
php artisan jwt:secret
- name: Run migrations
run: |
php artisan migrate
- name: Run seeds
run: |
php artisan db:seed --class=DemoSeeder
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Setup Log Directory
run: mkdir -p build/logs
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- uses: codecov/codecov-action@v3
name: Codecov Coverage
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./build/logs/clover.xml
name: spacialist-php${{matrix.php-versions}}-${{matrix.databases}}-postgis${{matrix.pg-gis-combo}}
verbose: false