Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: PHP Prompts

on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:

permissions:
contents: read

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['8.2', '8.3', '8.4', '8.5']
include:
- os: windows-latest
php: '8.4'
env:
COMPOSER_ROOT_VERSION: 1.2.x-dev
TERM: dumb

steps:
- uses: actions/checkout@v4

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2

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

- name: Run suite, including piped-input fixtures
run: php vendor/bin/unitary

- name: Run errors-only suite with terminal formatting
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.4'
env:
TERM: xterm-256color
run: php vendor/bin/unitary --errors-only
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.DS_Store
.sass-cache
composer.lock
vendor
vendor
.idea/
Loading
Loading