Skip to content

Merge pull request #80 from Hi-Folks/feat/update-packages #173

Merge pull request #80 from Hi-Folks/feat/update-packages

Merge pull request #80 from Hi-Folks/feat/update-packages #173

Workflow file for this run

# GithHub Actions Workflow generated with Ghygen
# Original configuration: https://ghygen.hi-folks.dev?code=fef428dc4f9ac4af2f4a879eaecdc214
name: Testing RandoPHP
on:
push:
branches:
- main
- master
- develop
- feature/**
pull_request:
branches:
- main
- master
- develop
jobs:
php-check:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: [ '8.2']
dependency-stability: [ prefer-stable ]
name: P${{ matrix.php-versions }} - ${{ matrix.operating-system}} - ${{ matrix.dependency-stability }}
steps:
- uses: actions/checkout@v3
- name: Install PHP versions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: composer run test
- name: Execute Code Sniffer via phpcs
run: |
composer run format
- name: Execute Code Static Analysis (PHP Stan)
run: |
composer run phpstan
php-tests:
runs-on: ${{ matrix.operating-system }}
needs: php-check
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest]
php-versions: [ '8.2', '8.1', '8.0']
dependency-stability: [ prefer-stable ]
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
steps:
- uses: actions/checkout@v3
- name: Install PHP versions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: composer run test