Skip to content

feat(api): added endpoint for batch source string editing #132

feat(api): added endpoint for batch source string editing

feat(api): added endpoint for batch source string editing #132

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- 'master'
push:
branches:
- '*'
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 7.4, 8.0, 8.1, 8.2 ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Composer install
run: composer install --no-interaction --prefer-dist
- name: Unit tests
run: vendor/bin/phpunit
validate:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
- name: Composer install
run: composer install --no-interaction --prefer-dist
- name: Check formatting
run: |
export PHP_CS_FIXER_IGNORE_ENV=true
vendor/bin/php-cs-fixer fix --dry-run
- name: Generate code coverage report
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Generate documentation
run: |
docker run --rm -v $(pwd):/data phpdoc/phpdoc:3 -d src -t .phpdoc/build
ls -la .phpdoc/build