Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
apfelbox committed Apr 30, 2024
1 parent 1d3393f commit 8abc12e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @apfelbox
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on: [ push ]

jobs:
build-test:
runs-on: ubuntu-latest

strategy:
matrix:
php: ['8.3']

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php }}"
tools: "composer"

- name: Display versions
run: |
php --version
php -r 'foreach (get_loaded_extensions() as $extension) echo $extension . " " . phpversion($extension) . PHP_EOL;'
php -i
- name: "Install Composer: Library / Composer Normalize"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/library/vendor-bin/c-norm

- name: "Install Composer: Library / PHP CS Fixer"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/library/vendor-bin/cs-fixer

- name: "Install Composer: Library / PHPStan"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/library/vendor-bin/phpstan

- name: "Install Composer: Symfony / Composer Normalize"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/symfony/vendor-bin/c-norm

- name: "Install Composer: Symfony / PHP CS Fixer"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/symfony/vendor-bin/cs-fixer

- name: "Install Composer: Symfony / PHPStan"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/symfony/vendor-bin/phpstan

0 comments on commit 8abc12e

Please sign in to comment.