Skip to content

Minor

Minor #122

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
phpUnitTests:
name: ${{ matrix.operatingSystem }} / PHP ${{ matrix.phpVersion }}
runs-on: ${{ matrix.operatingSystem }}
strategy:
max-parallel: 4
matrix:
operatingSystem: [ubuntu-latest]
phpVersion: ['8.1', '8.2', '8.3']
fail-fast: false
env:
extensions: curl, fileinfo, gd, mbstring, openssl, pdo, pdo_sqlite, sqlite3, xml, zip
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ matrix.operatingSystem }}-${{ matrix.phpVersion }}
cancel-in-progress: true
steps:
- name: Checkout Winter CMS
uses: actions/checkout@v4
with:
repository: wintercms/winter
ref: develop
- name: Checkout Winter Docs plugin
uses: actions/checkout@v4
with:
path: plugins/winter/docs
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.phpVersion }}
tools: composer:v2
extensions: ${{ env.extensions }}
- name: Install Composer dependencies
run: |
sed -i 's|plugins/myauthor/\*/composer.json|plugins/*/*/composer.json|g' composer.json
composer install --no-interaction --no-progress --no-scripts
- name: Run tests
run: php artisan winter:test -p Winter.Docs