Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Debrigode committed Jan 19, 2024
1 parent 5716e03 commit 029b503
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/rector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Rector

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

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

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
coverage: none
#extensions: intl
php-version: '8.3'
tools: composer

- name: Determine composer cache directory
id: composer-cache
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies installed with composer
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.directory }}
key: composer-${{ runner.os }}-${{ hashFiles('composer.*') }}
restore-keys: composer-${{ runner.os }}-composer-

- name: Install dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Run rector
run: vendor/bin/rector process --dry-run
36 changes: 36 additions & 0 deletions .github/workflows/twigcs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Twigcs

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

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

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
coverage: none
#extensions: intl
php-version: '8.3'
tools: composer

- name: Determine composer cache directory
id: composer-cache
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies installed with composer
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.directory }}
key: composer-${{ runner.os }}-${{ hashFiles('composer.*') }}
restore-keys: composer-${{ runner.os }}-composer-

- name: Install dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Run twigcs
run: vendor/bin/twigcs --config .twig_cs.dist.php

0 comments on commit 029b503

Please sign in to comment.