diff --git a/.github/workflows/ci.yaml b/.github/workflows/phpunit.yaml similarity index 73% rename from .github/workflows/ci.yaml rename to .github/workflows/phpunit.yaml index dea4167b3..3d199dea6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/phpunit.yaml @@ -1,4 +1,4 @@ -name: "CI" +name: PHPUnit on: pull_request: @@ -13,53 +13,10 @@ env: SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit" jobs: - coding-standards: - name: "Coding Standards (${{ matrix.php-version }})" - - runs-on: "ubuntu-18.04" - - strategy: - fail-fast: false - matrix: - php-version: - - '8.0' - - steps: - - - name: "Checkout code" - uses: "actions/checkout@v2" - - - - name: "Install PHP" - uses: "shivammathur/setup-php@v2" - with: - coverage: "none" - php-version: "${{ matrix.php-version }}" - - - - name: "Validate composer.json" - run: "composer validate --strict --no-check-lock" - - - - name: "Composer install" - uses: "ramsey/composer-install@v1" - with: - composer-options: "--no-scripts" - - - - name: "Composer install php-cs-fixer" - uses: "ramsey/composer-install@v1" - with: - composer-options: "--no-scripts --working-dir=tools/php-cs-fixer" - - - - name: "Run friendsofphp/php-cs-fixer" - run: "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff" - test: - name: "PHP ${{ matrix.php-version }} + @${{ matrix.symfony-version }} ${{ matrix.dependency-versions }} deps" + name: "${{ matrix.php-version }} + @${{ matrix.symfony-version }} ${{ matrix.dependency-versions }} deps" - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest services: mysql: @@ -91,12 +48,14 @@ jobs: matrix: php-version: - '8.1' + - '8.2' symfony-version: - '5.4.*' - '5.4.x-dev' - '6.0.x-dev' - '6.1.x-dev' - '6.2.x-dev' + - '6.3.x-dev' dependency-versions: ['highest'] allow-dev-deps-in-apps: ['0'] include: diff --git a/.github/workflows/static.yaml b/.github/workflows/static.yaml new file mode 100644 index 000000000..60d0e1949 --- /dev/null +++ b/.github/workflows/static.yaml @@ -0,0 +1,39 @@ +name: Static + +on: + push: + branches: + - main + pull_request: + release: + schedule: + - cron: '0 0 * * *' + +jobs: + composer-validate: + name: Validate composer.json + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Validate + run: composer validate --strict --no-check-lock + + php-cs-fixer: + name: PHP-CS-Fixer + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + tools: php-cs-fixer + + - name: Style Check + run: php-cs-fixer fix --dry-run --diff diff --git a/appveyor.yml b/appveyor.yml index b5a37b99e..6801857e6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -60,6 +60,6 @@ install: - composer install --no-interaction --no-progress --ansi --no-scripts --working-dir=tools/php-cs-fixer - vendor/bin/simple-phpunit install -test_script: - - cd C:\projects\maker-bundle - - vendor/bin/simple-phpunit +#test_script: +# - cd C:\projects\maker-bundle +# - vendor/bin/simple-phpunit