Rebase master on create-key branch #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: PHP CI/CD | |
on: [push, pull_request] | |
permissions: {} | |
jobs: | |
Unit_tests: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: [ | |
"5.4", | |
"5.6", | |
"7.4", | |
"8.0", | |
"8.4", | |
] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
steps: | |
- uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2 | |
- uses: actions/checkout@v3 | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Install Dependencies | |
run: composer install --no-ansi --no-interaction --no-progress | |
- name: Run test suite | |
run: vendor/bin/phpunit | |
Integration_tests: | |
if: github.event_name == 'push' | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
needs: Unit_tests | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: [ | |
"7.4", | |
"8.4", | |
] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
steps: | |
- uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2 | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: composer install --no-ansi --no-interaction --no-progress | |
- name: Run test suite | |
env: | |
TINIFY_KEY: ${{ secrets.TINIFY_KEY }} | |
run: vendor/bin/phpunit --no-configuration test/integration.php |