From 976d22d0830d033de6fd285e254f5b7bba0c3907 Mon Sep 17 00:00:00 2001 From: KimSpeer Date: Thu, 5 Sep 2024 14:35:09 +0200 Subject: [PATCH] deleted all other Workflows so tit will be faster --- .github/workflows/codacy-coverage.yml | 53 ------------ .github/workflows/code-climate.yml | 57 ------------- .github/workflows/monorepo-split-packages.yml | 75 ----------------- .github/workflows/monorepo-split-plugins.yml | 32 ------- .github/workflows/pest.yml | 83 ------------------- .github/workflows/phpstan.yml | 37 --------- .github/workflows/pint.yml | 27 ------ .github/workflows/update-changelog.yml | 28 ------- 8 files changed, 392 deletions(-) delete mode 100644 .github/workflows/codacy-coverage.yml delete mode 100644 .github/workflows/code-climate.yml delete mode 100644 .github/workflows/monorepo-split-packages.yml delete mode 100644 .github/workflows/monorepo-split-plugins.yml delete mode 100644 .github/workflows/pest.yml delete mode 100644 .github/workflows/phpstan.yml delete mode 100644 .github/workflows/pint.yml delete mode 100644 .github/workflows/update-changelog.yml diff --git a/.github/workflows/codacy-coverage.yml b/.github/workflows/codacy-coverage.yml deleted file mode 100644 index b788660d7..000000000 --- a/.github/workflows/codacy-coverage.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Codacy coverage - -on: - push: - branches: - - main - -jobs: - coverage: - env: - DB_CONNECTION: sqlite - SESSION_DRIVER: array - DB_DATABASE: ":memory:" - APP_KEY: base64:1NxfrNErQ0vo1ZnPcLeVhnE7tOZdKlKiFORzPA92krM= - runs-on: ubuntu-latest - - name: Checkout - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: "8.2" - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: pcov - - - name: Setup problem matchers - run: | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - - name: Remove PHP-PSR Extension - run: | - sudo apt remove php8.2-psr - - - name: Install dependencies - run: | - composer update - - - name: List Installed Dependencies - run: composer show -D - - - name: Execute tests - run: vendor/bin/pest --coverage-clover clover.xml - - - name: Run codacy-coverage-reporter - uses: codacy/codacy-coverage-reporter-action@v1 - with: - api-token: ${{ secrets.CODACY }} - coverage-reports: clover.xml diff --git a/.github/workflows/code-climate.yml b/.github/workflows/code-climate.yml deleted file mode 100644 index a4644bc9f..000000000 --- a/.github/workflows/code-climate.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Code Climate -on: - push: - branches: - - main - tags: - - "!*" # Do not execute on tags - paths: - - src/* - - test/* - - "*.php" - - "*.json" - - ".github/workflows/code-climate.yml" - pull_request: - paths: - - "!*.MD" -jobs: - test: - env: - DB_CONNECTION: sqlite - SESSION_DRIVER: array - DB_DATABASE: ":memory:" - APP_KEY: base64:1NxfrNErQ0vo1ZnPcLeVhnE7tOZdKlKiFORzPA92krM= - runs-on: ubuntu-latest - - name: Checkout - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: "8.2" - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: pcov - - - name: Setup problem matchers - run: | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - - name: Remove PHP-PSR Extension - run: | - sudo apt remove php8.2-psr - - - name: Install dependencies - run: | - composer update - - - name: Coverage - uses: paambaati/codeclimate-action@v9.0.0 - env: - CC_TEST_REPORTER_ID: 49c2958be5b2f72fa7202fd4b91b4668cbfefa9aa51e949b8a0bde13bc893ae5 - with: - coverageCommand: vendor/bin/pest --coverage-clover clover.xml diff --git a/.github/workflows/monorepo-split-packages.yml b/.github/workflows/monorepo-split-packages.yml deleted file mode 100644 index ce76536ff..000000000 --- a/.github/workflows/monorepo-split-packages.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: "Split Packages" - -on: - push: - branches: - - main - -env: - GITHUB_TOKEN: ${{ secrets.BOT }} - CORE_VERSION: "^2.1.0" - -jobs: - packages_split: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - package: - - audit - - builder - - core - - expiry - - flags - - jobs - - locate - - login-link - - notifications - - passkey - - permission - - press - - security - - sync - - redis-model - - trainings - - user - - user-device - - user-session - - steps: - - uses: actions/checkout@v4 - - # Search and replace "moox/core": "*" with "moox/core": "^2.1.0" in composer.json - - name: Replace core version in composer.json - working-directory: packages/${{ matrix.package }} - run: | - if [ -f composer.json ]; then - echo "Updating moox/core version in ${{ matrix.package }}" - sed -i 's/"moox\/core": "\*"/"moox\/core": "^${{ env.core_version }}"/g' composer.json - fi - - # Commit the updated composer.json (if there was a change) - - name: Commit changes - working-directory: packages/${{ matrix.package }} - run: | - if [ -f composer.json ]; then - git config --global user.name "mooxbot" - git config --global user.email "bot@moox.org" - git add composer.json - git commit -m "Update moox/core dependency to ^${{ env.core_version }}" || echo "No changes to commit" - fi - - - if: "!startsWith(github.ref, 'refs/tags/')" - uses: "symplify/monorepo-split-github-action@v2.3.0" - with: - tag: ${GITHUB_REF#refs/tags/} - - package_directory: "packages/${{ matrix.package }}" - - repository_organization: "mooxphp" - repository_name: "${{ matrix.package }}" - - user_name: "mooxbot" - user_email: "bot@moox.org" - diff --git a/.github/workflows/monorepo-split-plugins.yml b/.github/workflows/monorepo-split-plugins.yml deleted file mode 100644 index 3056a4f8f..000000000 --- a/.github/workflows/monorepo-split-plugins.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: "Split Plugins" - -on: - push: - branches: - - main - -env: - GITHUB_TOKEN: ${{ secrets.BOT }} - -jobs: - plugins_split: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - - steps: - - uses: actions/checkout@v4 - - - if: "!startsWith(github.ref, 'refs/tags/')" - uses: "symplify/monorepo-split-github-action@v2.3.0" - with: - tag: ${GITHUB_REF#refs/tags/} - - package_directory: "packages/press/wordpress/plugins/moox-press" - - repository_organization: "mooxphp" - repository_name: "press-wp" - - user_name: "mooxbot" - user_email: "bot@moox.org" diff --git a/.github/workflows/pest.yml b/.github/workflows/pest.yml deleted file mode 100644 index dd5c89c66..000000000 --- a/.github/workflows/pest.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Pest - -on: - pull_request: - branches: - - main - push: - branches: - - main - - "feature/**" - -jobs: - test: - runs-on: ${{ matrix.os }} - env: - DB_DATABASE: moox-test - DB_USER: user - DB_PASSWORD: secret - APP_KEY: base64:1NxfrNErQ0vo1ZnPcLeVhnE7tOZdKlKiFORzPA92krM= - strategy: - fail-fast: true - matrix: - os: [ubuntu-latest] - php: [8.2] - laravel: [10.*, 11.*] - stability: [prefer-lowest, prefer-stable] - include: - - laravel: 10.* - testbench: 8.* - - laravel: 11.* - testbench: 9.* - - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} - - services: - mysql: - image: mysql:latest - env: - MYSQL_USER: user - MYSQL_PASSWORD: secret - MYSQL_DATABASE: laravel_test - MYSQL_ROOT_PASSWORD: secretroot - ports: - - 3306 - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 - - steps: - - - name: Verfify MySQL connection - run: | - mysql --version - sudo apt-get install -y mysql-client - mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -uuser -psecret -e "SHOW DATABASES" - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: pcov - - - name: Setup problem matchers - run: | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - - - name: Remove PHP-PSR Extension - run: | - sudo apt remove php8.2-psr - - - name: Install dependencies - run: | - composer update - - - name: List Installed Dependencies - run: composer show -D - - - name: Execute tests - run: vendor/bin/pest --coverage-clover clover.xml diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml deleted file mode 100644 index 0a4c4081c..000000000 --- a/.github/workflows/phpstan.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: PHPStan - -on: - pull_request: - branches: - - main - push: - branches: - - main - - "feature/**" - -jobs: - phpstan: - name: phpstan - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: "8.2" - coverage: none - - - name: Remove PHP-PSR Extension - run: | - sudo apt remove php8.2-psr - - - name: Install dependencies - run: | - composer update - - - name: List Installed Dependencies - run: composer show -D - - - name: Run PHPStan - run: ./vendor/bin/phpstan --error-format=github diff --git a/.github/workflows/pint.yml b/.github/workflows/pint.yml deleted file mode 100644 index b6b18be87..000000000 --- a/.github/workflows/pint.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Pint - -on: - push: - branches: - - main - - "feature/**" - -jobs: - php-code-styling: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - token: ${{ secrets.BOT || github.token }} - - - name: Fix PHP code style issues - uses: aglipanci/laravel-pint-action@2.4 - - - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - push_options: --force - commit_message: Fix styling diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml deleted file mode 100644 index 0cdea2336..000000000 --- a/.github/workflows/update-changelog.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: "Update Changelog" - -on: - release: - types: [released] - -jobs: - update: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: main - - - name: Update Changelog - uses: stefanzweifel/changelog-updater-action@v1 - with: - latest-version: ${{ github.event.release.name }} - release-notes: ${{ github.event.release.body }} - - - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v5 - with: - branch: main - commit_message: Update CHANGELOG - file_pattern: CHANGELOG.md