From 57f36362e2b759de879e65202ffe22209cc65b5d Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Wed, 6 Sep 2023 12:31:27 +0900 Subject: [PATCH] Create code-style.yml Same CS test that was done in travis. --- .github/workflows/code-style.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/code-style.yml diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml new file mode 100644 index 00000000..1e585432 --- /dev/null +++ b/.github/workflows/code-style.yml @@ -0,0 +1,25 @@ +name: code-style + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + php-cs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + name: Checkout repository + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + + - uses: ramsey/composer-install@v2 + with: + dependency-versions: 'highest' + + - name: Check Code Style + run: ./bin/phpcs -p --extensions=php --standard=PSR2 --error-severity=1 --warning-severity=0 ./src ./tests;