Skip to content

Commit

Permalink
Add pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylwester committed Aug 30, 2023
1 parent 62d7fdd commit ce56925
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/speardevs-pipelines.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: SpearDevs pipelines

on: [ pull_request ]

jobs:
rector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- uses: php-actions/composer@v6
with:
php_version: '8.2'
version: 2
php_extensions: intl zip exif gd
memory_limit: -1

- name: Run Rector
run: vendor/bin/rector process --dry-run --clear-cache

- name: Run PHPStan
uses: php-actions/phpstan@v3
with:
configuration: phpstan.neon

- name: Run PHPUnit tests
run: vendor/bin/phpunit
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"require": {
"phpstan/phpstan": "^1.10",
"rector/rector": "^0.18.0",
"symplify/easy-coding-standard": "^12.0"
"symplify/easy-coding-standard": "^12.0",
"phpunit/phpunit": "^10.3"
},
"minimum-stability": "dev"
}

0 comments on commit ce56925

Please sign in to comment.