Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 0 additions & 213 deletions .github/workflows/beta-release.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/branch-protection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Branch Protection

on:
pull_request:
branches: [main, beta, development]

jobs:
lint-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

branch-check:
uses: ConductionNL/.github/.github/workflows/branch-protection.yml@main
70 changes: 70 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Code Quality

on:
pull_request:
branches: [main, master, development]

concurrency:
group: quality-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
php-checks:
name: ${{ matrix.check.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
check:
- { name: "PHP Lint", command: "composer lint" }
- { name: "PHPCS", command: "./vendor/bin/phpcs --standard=phpcs.xml" }
- { name: "PHPMD", command: "./vendor/bin/phpmd lib text phpmd.xml" }
- { name: "Psalm", command: "./vendor/bin/psalm --threads=1 --no-cache --output-format=github" }
- { name: "PHPStan", command: "./vendor/bin/phpstan analyse --memory-limit=1G" }
- { name: "PHPUnit", command: "./vendor/bin/phpunit --colors=always" }

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, xml, ctype, iconv, intl, dom, filter, gd, json, posix, zip, soap
tools: composer:v2

- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: ${{ matrix.check.name }}
run: ${{ matrix.check.command }}
frontend-quality:
name: Frontend Quality
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: ESLint
run: npm run lint

- name: Stylelint
run: npm run stylelint
12 changes: 6 additions & 6 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Documentation

on:
push:
branches:
- documentation
branches:
- development
pull_request:
branches:
- documentation
branches:
- development

jobs:
deploy:
Expand All @@ -22,7 +22,7 @@ jobs:
- name: List directory structure
run: |
ls -la
ls -la website/
ls -la docusaurus/

# Generate SVG files using PlantUML
- name: plantuml
Expand All @@ -38,7 +38,7 @@ jobs:
id: deploy
uses: redkubes/docusaurus-deploy-action@v1.2
with:
source-folder: website
source-folder: docusaurus
git-user: ${{ github.actor }}
git-password: ${{ secrets.GITHUB_TOKEN }}
deployment-branch: gh-pages
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/phpcs.yml

This file was deleted.

Loading
Loading