Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Sep 17, 2024
1 parent cd728cc commit 474b39a
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,14 @@ name: CI

on: [push, pull_request]

permissions:
contents: read

jobs:
testsuite:
uses: cakephp/.github/.github/workflows/[email protected]
secrets: inherit

cs-stan:
name: Coding Standard & Static Analysis
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: mbstring, intl
coverage: none
tools: vimeo/psalm:5, phpstan:1.12, cs2pr

- name: Composer Install
run: composer require --dev cakephp/cakephp-codesniffer:^5.0

- name: Run phpcs
run: vendor/bin/phpcs --report=checkstyle --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/ | cs2pr

- name: Run psalm
if: always()
run: psalm --output-format=github

- name: Run phpstan
if: always()
run: phpstan analyse --error-format=github
uses: ADmad/.github/.github/workflows/cs-stan.yml@master
secrets: inherit

0 comments on commit 474b39a

Please sign in to comment.