Skip to content

chore(readme): update readme #54

chore(readme): update readme

chore(readme): update readme #54

Workflow file for this run

name: CI
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: {}
push:
branches:
- main
- develop
- feature/*
pull_request:
branches:
- main
- develop
- feature/*
permissions:
contents: write
jobs:
tests:
name: Tests πŸ§ͺ
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- name: Set up PHP 🐘
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: xdebug
extensions: zip
- name: Install dependencies πŸ“¦
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run PHPUnit tests πŸ§ͺ
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_extensions: xdebug zip
args: tests --coverage-clover ./coverage.xml
- name: Upload to Codecov πŸ“Š
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODE_COV_TOKEN }}
files: ./coverage.xml
verbose: true
documentation:
name: Documentation πŸ“š
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Generate documentation πŸ“š
# create documentation folder if not exists then run phpdoc
run: docker run --rm -v ${{ github.workspace }}:/data phpdoc/phpdoc:latest run -d src -t docs
- name: Deploy documentation πŸš€
uses: JamesIves/[email protected]
with:
branch: documentation
folder: docs