brokeyourbike/interswitch-api-client-php

View on GitHub
.github/workflows/static.yml

Summary

Maintainability
Test Coverage
name: static analysis

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  phpstan:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    strategy:
      matrix:
        php-version: [8.1]

    steps:
      - uses: actions/checkout@v4

      - uses: shivammathur/setup-php@v2
        with:
          php-version: "${{ matrix.php-version }}"
          coverage: none
          tools: composer

      - run: composer update --no-interaction --no-progress
      - run: composer bin phpstan require phpstan/phpstan
      - run: vendor/bin/phpstan analyze --no-progress