Skip to content

Configure Renovate

Configure Renovate #13

Workflow file for this run

---
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- master
- develop
name: πŸ” Continuous integration
jobs:
integration:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-22.04"]
php: ["8.1", "8.2"]
steps:
- name: πŸ“¦ Check out the codebase
uses: actions/checkout@v3
- name: πŸ› οΈ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, fileinfo, xdebug
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: xdebug
- name: πŸ› οΈ Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: ♻️ Restore cached backend dependencies
id: cached-composer-dependencies
uses: actions/cache@v3
with:
path: vendor
key: vendor-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}-${{ matrix.php }}
- name: πŸ“₯ Install backend dependencies
if: steps.cached-composer-dependencies.outputs.cache-hit != 'true'
run: composer install
- name: πŸ› οΈ Prepare environment
run: |
# make env
# make key
mkdir -p ./.build/php-cs-fixer
mkdir -p ./.build/phpstan
mkdir -p ./.build/phpunit
env:
APP_NAME: spiral
SHARED_SERVICES_NAMESPACE: ss
PROJECT_SERVICES_NAMESPACE: wod
COMPOSE_PROJECT_NAME: spiral-starter-tpl
# - name: πŸ” Run coding standards task
# run: |
# composer run cs:diff
# - name: πŸ” Run static analysis using phpstan
# run: |
# composer run stan
# env:
# PHPSTAN_OUTPUT_FORMAT: github
- name: πŸ§ͺ Execute phpunit and pest tests
run: |
composer run test:cc
env:
XDEBUG_MODE: "coverage"
- name: πŸ“€ Upload coverage results to Codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
files: coverage.xml
...