diff --git a/.github/workflows/ci_pipe.yml b/.github/workflows/ci_pipe.yml index 26a68f25..50d70323 100644 --- a/.github/workflows/ci_pipe.yml +++ b/.github/workflows/ci_pipe.yml @@ -105,7 +105,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 7.4 + php-version: 8.2 # ----------------------------------- - name: Mount Cache uses: actions/cache@v3 diff --git a/.github/workflows/pr_pipe.yml b/.github/workflows/pr_pipe.yml index 22616ca7..58acd6b9 100644 --- a/.github/workflows/pr_pipe.yml +++ b/.github/workflows/pr_pipe.yml @@ -72,6 +72,11 @@ jobs: steps: - uses: actions/checkout@v3 # ----------------------------------- + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + # ----------------------------------- - name: Mount Cache uses: actions/cache@v3 with: @@ -82,6 +87,28 @@ jobs: - name: Run PHPUnit run: make phpunit -B + infection: + name: Mutation Tests + needs: unit_tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # ----------------------------------- + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + # ----------------------------------- + - name: Mount Cache + uses: actions/cache@v3 + with: + key: cache-dev-${{ github.run_id }} + path: | + vendor + # ----------------------------------- + - name: Run Tests + run: make infection -B + phpstan: name: PHPStan Analyzer needs: install_dev @@ -126,6 +153,50 @@ jobs: - name: Run PHP CS Fixer run: make csfix -B + phpmnd: + name: PHP Magic Numbers Analyzer + needs: install_dev + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # ----------------------------------- + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + # ----------------------------------- + - name: Mount Cache + uses: actions/cache@v3 + with: + key: cache-dev-${{ github.run_id }} + path: | + vendor + # ----------------------------------- + - name: Run Test + run: make phpmnd -B + + rector: + name: Rector Analyzer + needs: install_dev + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # ----------------------------------- + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + # ----------------------------------- + - name: Mount Cache + uses: actions/cache@v3 + with: + key: cache-dev-${{ github.run_id }} + path: | + vendor + # ----------------------------------- + - name: Run Rector + run: make rector -B + # ------------------------------------------------------------------------------------------------------------------------ svrunit: