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
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/opencodeco/devcontainers/install-php-extensions:0": {
"extensions": "amqp apcu bcmath exif gd intl opcache pcntl pdo_pgsql pgsql redis xsl"
"extensions": "amqp apcu bcmath exif gd intl opcache pcntl pdo_pgsql pgsql redis"
},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/node:1": {
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,34 @@ jobs:
tools/vendor/bin/php-cs-fixer fix
--dry-run --format=checkstyle --show-progress=none | cs2pr

twig-lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/mbinorg/mbin-pipeline-image:latest
steps:
- uses: actions/checkout@v4

- name: Add GITHUB_WORKSPACE as a safe directory
run: git config --global --add safe.directory $GITHUB_WORKSPACE

- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-tools-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-tools-

- run: cp .env.example .env

- name: Composer tools install
run: composer install --no-scripts --no-progress

- name: Twig linter
run: php bin/console lint:twig templates/

frontend-lint:
runs-on: ubuntu-latest
container:
Expand Down
Loading