Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Bäse committed Dec 25, 2024
1 parent 854bb27 commit 43c0e5b
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,30 @@ on:
- main

jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.3
- name: Validate Dependencies
run: composer validate
- name: Install Dependencies
uses: ramsey/composer-install@v3
- name: Check Coding Standards
run: vendor/bin/phpcs --report=summary
- name: Static Code Analysis
run: vendor/bin/phpstan analyze web/modules/custom

test:
name: Testing
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -28,8 +48,8 @@ jobs:
mysql -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS db;'
sudo systemctl start apache2.service
- name: Unit & Kernel Tests
run: vendor/bin/phpunit --testsuite unit,kernel
run: vendor/bin/phpunit --testsuite unit,kernel --testdox --stop-on-defect
- name: Install Drupal
run: bash scripts/install-ci.sh
- name: Existing Site Tests
run: vendor/bin/phpunit --testsuite existing-site --debug
run: vendor/bin/phpunit --testsuite existing-site --testdox --stop-on-defect

0 comments on commit 43c0e5b

Please sign in to comment.