Skip to content

Commit

Permalink
fix(Repo): Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
4513 committed Jan 12, 2024
1 parent 8f9a242 commit 423fbd6
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/min-stability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- "**"
pull_request:
branches: [ "master" ]
branches: [ "main" ]

permissions:
contents: read
Expand All @@ -21,10 +21,10 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'

- name: Composer Install
run: composer update --prefer-dist --no-progress --prefer-lowest

- name: PHPUnit
run: ./vendor/bin/phpunit
run: ./vendor/bin/phpunit --testsuite Full
28 changes: 28 additions & 0 deletions .github/workflows/phpcodesniffer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PHP_CodeSniffer

on:
push:
branches:
- "**"

permissions:
contents: read

jobs:
standard:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- name: Composer Install
run: composer install --prefer-dist --no-progress

- name: PHP_CodeSniffer
run: ./vendor/bin/phpcs
17 changes: 7 additions & 10 deletions .github/workflows/main.yml → .github/workflows/phpcoverage.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Main
name: PHPCoverage

on:
push:
branches:
- "**"
pull_request:
branches: [ "master" ]
schedule:
- cron: "0 1 * * *"

Expand All @@ -20,17 +18,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- name: Composer Install
run: composer install --prefer-dist --no-progress

- name: PHPUnit
- name: PHPUnitCoverage
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --log-junit junit_report.xml --coverage-clover clover.xml --coverage-text --colors=never

- name: PHPStan
run: ./vendor/bin/phpstan

- name: PHP_CodeSniffer
run: ./vendor/bin/phpcs

- name: CodeCov
uses: codecov/codecov-action@v3
28 changes: 28 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PHPStan

on:
push:
branches:
- "**"

permissions:
contents: read

jobs:
standard:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- name: Composer Install
run: composer install --prefer-dist --no-progress

- name: PHPStan
run: ./vendor/bin/phpstan --memory-limit=256M
32 changes: 32 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PHPUnit

on:
push:
branches:
- "**"
pull_request:
branches: [ "main" ]
schedule:
- cron: "0 1 * * *"

permissions:
contents: read

jobs:
standard:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- name: Composer Install
run: composer install --prefer-dist --no-progress

- name: PHPUnit
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit
30 changes: 30 additions & 0 deletions .github/workflows/vendor-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Vendor Check

on:
push:
branches:
- "main"
schedule:
- cron: "0 1 * * *"

permissions:
contents: read

jobs:
standard:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- name: Composer Install
run: composer install

- name: Check new major versions of vendor libs
run: composer outdated

0 comments on commit 423fbd6

Please sign in to comment.