Skip to content

Fix CI

Fix CI #5

Workflow file for this run

name: CI
on: push
env:
XDEBUG_MODE: coverage
jobs:
ci_job:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
php-version: ['7.4', '8.3']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
php-version: ${{ matrix.php-version }}
extensions: none
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- run: composer install
- run: composer run cov:badge
- name: Make code coverage badge
uses: timkrase/[email protected]
with:
coverage_badge_path: output/coverage.svg
push_badge: false
- name: Git push to image-data branch
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./output
publish_branch: image-data
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'