jaroslavtyc/granam-gpwebpay

View on GitHub
.github/workflows/run-tests-php7.4.yml

Summary

Maintainability
Test Coverage
name: Run tests
on: push
jobs:
  run-tests:
    name: Run tests on PHP 7.4
    runs-on: ubuntu-latest

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

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '7.4'
          tools: composer
          coverage: none

      - name: Cache composer dependencies
        uses: actions/cache@v1
        with:
          path: vendor
          key: composer-${{ hashFiles('composer.lock') }}

      - name: Install dependencies
        run: composer install

      - name: Run tests
        run: ./vendor/bin/phpunit