mirror of https://github.com/flightphp/core
Merge pull request #702 from flightphp/ci-add-multiple-OSs
Update workflow to support multiple OS environmentspull/704/head v3.18.3
commit
6b47c10192
@ -1,23 +1,27 @@
|
|||||||
name: Pull Request Check
|
name: 🚀 Pull Request Check 🔍
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
name: Unit testing
|
name: 🧪 Unit Testing - PHP ${{ matrix.php }} on ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
|
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
|
||||||
runs-on: ubuntu-latest
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: 📂 Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: shivammathur/setup-php@v2
|
- name: 🐘 Setup PHP ${{ matrix.php }}
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
extensions: curl, mbstring
|
extensions: mbstring, pdo_sqlite, fileinfo
|
||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
- run: composer install
|
- name: 📦 Install dependencies and 🧪 Run tests
|
||||||
- run: composer test
|
run: |
|
||||||
|
composer install --no-progress --no-ansi -n
|
||||||
|
composer test -- --colors=never --no-interaction
|
||||||
|
|||||||
Loading…
Reference in new issue