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
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5

- package-ecosystem: composer
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
groups:
composer-minor-and-patch:
update-types:
- minor
- patch

- package-ecosystem: npm
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
groups:
npm-minor-and-patch:
update-types:
- minor
- patch
91 changes: 91 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: CI

on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
php:
name: PHP quality and tests
runs-on: ubuntu-latest
timeout-minutes: 15
env:
APP_ENV: testing
APP_KEY: base64:MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY=
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: '8.3'
extensions: ctype, dom, fileinfo, iconv, mbstring, pdo_sqlite, sqlite3, xml
coverage: none
tools: composer:v2

- name: Validate Composer files
run: composer validate --no-check-publish

- name: Install PHP dependencies
run: composer install --prefer-dist --no-interaction --no-progress

- name: Audit PHP dependencies
run: composer audit --locked --no-interaction

- name: Check PHP formatting
run: composer lint

- name: Run PHP tests
run: composer test

frontend:
name: Frontend audit and build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '20.x'
cache: npm

- name: Install frontend dependencies
run: npm ci

- name: Audit frontend dependencies
run: npm audit --audit-level=high

- name: Build frontend assets
run: npm run build

dependency-review:
name: Dependency review
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Review dependency changes
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: high
151 changes: 0 additions & 151 deletions .github/workflows/deploy-validation.yml

This file was deleted.

Loading