Skip to content

Commit

Permalink
[RequestMapper]: Added GitHub workflows and update dependencies for s…
Browse files Browse the repository at this point in the history
…upporting symfony 5.4 and 6.0 and Refactoring
  • Loading branch information
fractalzombie committed Dec 6, 2021
1 parent d6bfca7 commit 8ab36d9
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 94 deletions.
94 changes: 94 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
#name: CI
#
#on:
# push:
# branches: [ main ]
#
# pull_request:
# branches: [ main ]
#
# page_build:
# release:
# types: [ published, created, edited ]
#
#jobs:
# build-test:
# runs-on: self-hosted
#
# steps:
# - uses: actions/checkout@v2
#
# - uses: php-actions/composer@v5
#
# - name: PHPUnit Tests
# uses: php-actions/phpunit@v2
# with:
# php_extensions: xdebug
# bootstrap: bootstrap.php
# configuration: phpunit.xml.dist
# args: --coverage-text

name: CI

on:
push:
branches: [ main ]

pull_request:
branches: [ main ]

page_build:
release:
types: [ published, created, edited ]

jobs:
build:
runs-on: self-hosted

strategy:
matrix:
php:
- "8.0"
- "8.1"
include:
- php-version: "8.0"
composer-options: "--ignore-platform-reqs"

- php-version: "8.1"
composer-options: "--ignore-platform-reqs"

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: xdebug
tools: pecl, phpunit, composer
ini-values: post_max_size=256M

- name: Setup Composer
uses: ramsey/composer-install@v1
with:
composer-options: "${{ matrix.composer-options }}"

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer update --prefer-dist --no-progress

- name: Unit Tests
run: ./vendor/bin/phpunit --colors=always --verbose --configuration phpunit.xml.dist --log-junit var/tests/.phpunit.output.xml
94 changes: 0 additions & 94 deletions .github/workflows/php.yml

This file was deleted.

0 comments on commit 8ab36d9

Please sign in to comment.