From c4b782b4ede2f105f1c53568a26cbc7be5a435f6 Mon Sep 17 00:00:00 2001 From: "adam.tal@vimeo.com" Date: Mon, 7 Aug 2023 14:17:51 -0400 Subject: [PATCH] set-up-php-matrix-testing --- .github/workflows/pr-checks.yaml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index b8f3718..3c1a70a 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -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