Skip to content

Commit

Permalink
Added phpcs to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
joegl committed Nov 19, 2024
1 parent efe2264 commit 9d709e2
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 7 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Drupal PHP CodeSniffer
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-phpcs:
runs-on: ubuntu-latest
container:
image: pookmish/drupal8ci:php8.3
steps:
- uses: actions/checkout@v4
- name: Restore Cache
uses: actions/cache@v4
with:
path: |
vendor
docroot/core
docroot/libraries
docroot/modules/contrib
key: 1.0-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
restore-keys: |
1.0-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
1.0-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-
1.0-${{ hashFiles('blt/blt.yml') }}-
- name: Run PHPCS
run: |
composer install -n &&
vendor/bin/phpcs --standard=./phpcs.dist.xml
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,12 @@
"su-sws/stanford_samlauth": "^1.0"
},
"require-dev": {
"drupal/core-dev": "~10.3.0",
"drupal/upgrade_status": "^4.0",
"phpspec/prophecy-phpunit": "^2.0",
"su-sws/blt-sws": "dev-main",
"su-sws/drupal-dev": "^10"
},
"replace": {
"drupal/coder": "*"
},
"conflict": {
"drupal/drupal": "*",
"drupal/gin": ">3.0.0-rc13"
Expand Down
Loading

0 comments on commit 9d709e2

Please sign in to comment.