gabrielbull/php-ups-api

View on GitHub
.github/workflows/test.yaml

Summary

Maintainability
Test Coverage
name: Tests

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  run:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        php-versions: [7.3, 7.4]
        include:
          - php-versions: "8.0"
            dependencies: "highest"
            composer-options: "--ignore-platform-req=php"

    name: PHP ${{ matrix.php-versions }}

    steps:
      - uses: actions/checkout@v2
      - uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-versions }}
          coverage: xdebug
          tools: composer:v2
      - name: Install dependencies
        uses: "ramsey/composer-install@v1"
        with:
          composer-options: "${{ matrix.composer-options }}"
      - run: vendor/bin/phpunit --coverage-text