Skip to content

Commit

Permalink
update CI condig
Browse files Browse the repository at this point in the history
  • Loading branch information
qdequippe committed Feb 12, 2024
1 parent d412718 commit 2841b42
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 55 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# These are supported funding model platforms
github: tomasvotruba
custom: ["https://jobbsy.dev/job/new", jobbsy.dev]
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 2 additions & 8 deletions .github/workflows/build_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
14 changes: 7 additions & 7 deletions .github/workflows/duplicated_groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
37 changes: 17 additions & 20 deletions .github/workflows/rector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2841b42

Please sign in to comment.