From 2841b42bb7c0990b1d75890280481d40e9a1277d Mon Sep 17 00:00:00 2001 From: Quentin Dequippe Date: Mon, 12 Feb 2024 12:07:47 +0400 Subject: [PATCH] update CI condig --- .github/FUNDING.yml | 1 + .github/workflows/build.yaml | 4 +-- .github/workflows/build_and_deploy.yaml | 10 ++----- .github/workflows/code_analysis.yaml | 31 +++++++++----------- .github/workflows/duplicated_groups.yaml | 14 ++++----- .github/workflows/rector.yaml | 37 +++++++++++------------- 6 files changed, 42 insertions(+), 55 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 35ae25937..89566b605 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,3 @@ # These are supported funding model platforms github: tomasvotruba +custom: ["https://jobbsy.dev/job/new", jobbsy.dev] diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5b7907727..e6247cbd4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,7 +19,5 @@ jobs: - name: Build run: | - # configure timezone: https://stackoverflow.com/a/27052708/1348344 - # export TZ=Europe/Prague - bin/console import --ansi -vvv + bin/console import --ansi bin/console stenope:build diff --git a/.github/workflows/build_and_deploy.yaml b/.github/workflows/build_and_deploy.yaml index 38da69c69..d89d6aaf4 100644 --- a/.github/workflows/build_and_deploy.yaml +++ b/.github/workflows/build_and_deploy.yaml @@ -23,9 +23,6 @@ jobs: - run: composer install --no-progress --ansi - # configure timezone: https://stackoverflow.com/a/27052708/1348344 - #- run: export TZ=Europe/Prague - - run: bin/console import --ansi - run: bin/console stenope:build -e prod @@ -34,12 +31,9 @@ jobs: - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4.5.0 with: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - BRANCH: gh-pages - FOLDER: build - CLEAN: true + folder: build - - name: Purge cache + - name: Purge Cloudflare cache uses: jakejarvis/cloudflare-purge-action@master env: CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }} diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index e4b5dca21..b34e6f5b4 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -12,31 +12,28 @@ jobs: fail-fast: false matrix: actions: - - - name: Coding Standard - run: 'composer fix-cs' + - name: Coding Standard + run: 'composer fix-cs' - - - name: 'PHPStan' - run: composer phpstan + - name: 'PHPStan' + run: composer phpstan - - - name: 'Unit Tests' - run: vendor/bin/phpunit + - name: 'Unit Tests' + run: vendor/bin/phpunit name: ${{ matrix.actions.name }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 # see https://github.com/shivammathur/setup-php - - uses: shivammathur/setup-php@v2 - with: - php-version: 8.2 - # needed by phpunit - extensions: mbstring + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + # needed by phpunit + extensions: mbstring - - run: composer install --no-progress --ansi + - run: composer install --no-progress --ansi - - run: ${{ matrix.actions.run }} + - run: ${{ matrix.actions.run }} diff --git a/.github/workflows/duplicated_groups.yaml b/.github/workflows/duplicated_groups.yaml index 166d20eb5..5eb67b655 100644 --- a/.github/workflows/duplicated_groups.yaml +++ b/.github/workflows/duplicated_groups.yaml @@ -11,13 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - uses: shivammathur/setup-php@v2 - with: - php-version: 8.2 - coverage: none + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + coverage: none - - run: composer install --no-progress + - run: composer install --no-progress - - run: bin/console validate-groups --ansi + - run: bin/console validate-groups --ansi diff --git a/.github/workflows/rector.yaml b/.github/workflows/rector.yaml index 7201af5d2..8162d7f36 100644 --- a/.github/workflows/rector.yaml +++ b/.github/workflows/rector.yaml @@ -11,30 +11,27 @@ jobs: runs-on: ubuntu-latest steps: - - - uses: actions/checkout@v3 - with: - token: ${{ secrets.ACCESS_TOKEN || github.token }} + - uses: actions/checkout@v3 + with: + token: ${{ secrets.ACCESS_TOKEN || github.token }} - - - uses: shivammathur/setup-php@v2 - with: - php-version: 8.2 + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 - - uses: "ramsey/composer-install@v2" + - uses: "ramsey/composer-install@v2" ## First run Rector - here can't be --dry-run !!! it would stop the job with it and not commit anything in the future - - run: vendor/bin/rector process ${{ matrix.directories }} --ansi + - run: vendor/bin/rector process ${{ matrix.directories }} --ansi - - run: vendor/bin/ecs check --fix --ansi + - run: vendor/bin/ecs check --fix --ansi # see https://github.com/EndBug/add-and-commit - - - # commit only to core contributors who have repository access - if: github.event.pull_request.head.repo.full_name == github.repository - uses: EndBug/add-and-commit@v9 - with: - default_author: github_actions - message: "🧹✨" - add: "*" - push: origin HEAD:${{ github.head_ref }} --force + # commit only to core contributors who have repository access + - if: github.event.pull_request.head.repo.full_name == github.repository + uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions + message: "🧹✨" + add: "*" + push: origin HEAD:${{ github.head_ref }} --force