Skip to content

Commit

Permalink
chore: improve ci (#106)
Browse files Browse the repository at this point in the history
* chore: improve ci
  • Loading branch information
Chris53897 authored Feb 2, 2024
1 parent 705bbf3 commit 242c7ea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/code_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
matrix:
php: ['8.2']
stability: [ prefer-stable ]
symfony-version: ['6.2.*']
symfony-version: ['6.4.*']
include:
- php: '8.0'
symfony-version: 5.4.*
Expand All @@ -20,19 +20,22 @@ jobs:
symfony-version: 5.4.*
stability: prefer-stable
- php: '8.1'
symfony-version: 6.2.*
symfony-version: 6.4.*
stability: prefer-stable
- php: '8.2'
symfony-version: 6.2.*
symfony-version: 6.4.*
stability: prefer-stable
- php: '8.3'
symfony-version: 6.4.*
stability: prefer-stable

name: PHP ${{ matrix.php }} - ${{ matrix.symfony-version }} - ${{ matrix.stability }}
steps:
# basically git clone
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
Expand All @@ -41,7 +44,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pcov, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
extensions: pcov, curl, libxml, pcntl, pdo
coverage: pcov

- name: Install dependencies
Expand All @@ -62,7 +65,7 @@ jobs:
#cs:
#runs-on: ubuntu-latest
#steps:
#- uses: actions/checkout@v3
#- uses: actions/checkout@v4
#- uses: shivammathur/setup-php@v2
#with:
#php-version: 8.2
Expand All @@ -74,7 +77,7 @@ jobs:
#phpstan:
#runs-on: ubuntu-latest
#steps:
#- uses: actions/checkout@v3
#- uses: actions/checkout@v4
#- uses: shivammathur/setup-php@v2
#with:
#php-version: 8.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
code_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
Expand All @@ -20,7 +20,7 @@ jobs:
SYMFONY_DEPRECATIONS_HELPER: 'weak'
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: build/logs/clover.xml
8 changes: 4 additions & 4 deletions .github/workflows/tests-upcoming-symfony.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:
continue-on-error: true
strategy:
matrix:
symfony-version: ['6.3.x@dev']
symfony-version: ['6.4.x@dev']
steps:
- name: 'Checkout code'
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 'Install PHP with extensions'
uses: shivammathur/setup-php@2.24.0
uses: shivammathur/setup-php@2.29.0
with:
coverage: none
php-version: '8.2'
tools: composer:v2
extensions: pcov, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
extensions: pcov, curl, libxml, pcntl, pdo
ini-values: date.timezone=UTC

- name: 'Install project dependencies'
Expand Down

0 comments on commit 242c7ea

Please sign in to comment.