Skip to content

Release

Release #4

Workflow file for this run

name: Release
on:
workflow_run:
workflows:
- "Linter: PHPCS, PHPStan & PHPUnit with coverage"
types:
- "completed"
branches:
- "main"
jobs:
release-please:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: 'Checkout code'
uses: actions/checkout@v4
- name: 'Install PHP with extensions'
uses: shivammathur/setup-php@v2
with:
coverage: xdebug
php-version: 8.2
tools: composer:v2
extensions: mbstring, intl, pdo, pdo_sqlite, sqlite3
ini-values: date.timezone=UTC
- name: 'Install project dependencies'
run: |
composer require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
vendor/bin/simple-phpunit install
- name: 'Run PHPStan analysis'
run: vendor/bin/phpstan analyse
- name: 'Run PHPUnit tests'
run: vendor/bin/simple-phpunit --coverage-clover clover.xml
- name: 'Run codacy-coverage-reporter'
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: clover.xml
- uses: google-github-actions/release-please-action@v4
with:
release-type: php
package-name: mosparo-bundle