Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set-up-php-matrix-testing #101

Merged
merged 1 commit into from
Aug 7, 2023
Merged
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
26 changes: 19 additions & 7 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,28 @@ on:
- master

jobs:
build:
name: Build
runs-on: ubuntu-latest
run:
name: Run Tests on ${{ matrix.operating-system }} with PHP ${{ matrix.php-versions }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.2', '7.4']
phpunit-versions: ['4.8.36']

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build Docker
run: docker build . --tag omnipay-vindicia
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit:${{ matrix.phpunit-versions }}
coverage: none

- name: Test
run: docker run --rm omnipay-vindicia make test
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run tests
run: phpunit
Loading