diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d87a5a8..c716cda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,43 +7,22 @@ on: jobs: lint: - strategy: - fail-fast: false - matrix: - operating-system: [ubuntu-latest] - php-versions: ["7.2"] - runs-on: ${{ matrix.operating-system }} + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php-versions }} + php-version: "7.2" coverage: none - - name: Get Composer Cache Directory - id: composer-cache-dir - run: | - echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: ${{ steps.composer-cache-dir.outputs.dir }} - key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer- - - name: Install dependencies run: composer install --no-progress - name: Check coding style run: vendor/bin/phpcs - - name: Show PHPStan version - run: vendor/bin/phpstan --version - - name: Run static analyser run: vendor/bin/phpstan analyse @@ -65,26 +44,10 @@ jobs: php-version: ${{ matrix.php-versions }} coverage: none - - name: Get Composer Cache Directory - id: composer-cache-dir - run: | - echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: ${{ steps.composer-cache-dir.outputs.dir }} - key: ${{ runner.os }}-${{ matrix.php-versions }}-${{ matrix.mode }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-${{ matrix.mode }}-composer- - - name: Install dependencies run: | [[ "${{ matrix.mode }}" = "low" ]] && composer update --no-progress --prefer-lowest || true [[ "${{ matrix.mode }}" = "high" ]] && composer update --no-progress || true - - name: Show phpunit version - run: vendor/bin/phpunit --version - - name: Run testing run: vendor/bin/phpunit