Skip to content

Commit

Permalink
ci: add ECS static testing
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Oct 16, 2024
1 parent 03d8507 commit 3701b18
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Static Analysis

on: [push]

jobs:
ecs:
name: ECS

runs-on: ubuntu-latest
strategy:
matrix:
dependency-version: [prefer-lowest, prefer-stable]

steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Install Dependencies
run: composer update --prefer-stable --no-interaction --no-progress --ansi

- name: Style
run: composer test:lint
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"sort-packages": true
},
"scripts": {
"lint": "ecs --fix",
"test:lint": "ecs",
"test:phpstan": "pest --testsuite phpstan",
"test:rector": "pest --testsuite rector",
"test:phpcsfixer": "pest --testsuite phpcsfixer",
Expand Down

0 comments on commit 3701b18

Please sign in to comment.