Skip to content

Commit

Permalink
8.1, 8.2 e 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wallacemaxters committed Apr 21, 2024
1 parent fda71b7 commit b9ce8a8
Showing 1 changed file with 23 additions and 30 deletions.
53 changes: 23 additions & 30 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,33 @@ name: PHP Composer

on:
push:
branches: [ master, dev ]
branches: [master, dev]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:

run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
# operating-system: [ubuntu-latest, windows-latest, macOS-latest]
operating-system: [ubuntu-latest]
php-versions: ['8.0', '8.1', '8.2', '8.3']

operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php-versions: ["8.1", "8.2", "8.3"]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2

- name: Show PHP versson
run: php -v

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run Test Suite
run: composer gh-test
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
# extensions: intl #optional
# ini-values: "post_max_size=256M" #optional
- name: Check PHP Version
run: php -v


- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run Test Suite
run: composer gh-test

0 comments on commit b9ce8a8

Please sign in to comment.