Skip to content

Commit

Permalink
improve and fix pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Dec 26, 2023
1 parent 97580c9 commit 8e913d0
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci_pipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/pr_pipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8e913d0

Please sign in to comment.