Skip to content

bug fix in handlePost, UploadStarted event not fired (#13) #148

bug fix in handlePost, UploadStarted event not fired (#13)

bug fix in handlePost, UploadStarted event not fired (#13) #148

Workflow file for this run

name: Lint and test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- uses: "ramsey/composer-install@v2"
with:
composer-options: "--no-interaction --no-progress --optimize-autoloader"
- name: Check for PSR-12 coding style
run: vendor/bin/phpcs --standard=phpcs.xml
- name: PHPUnit
run: vendor/bin/phpunit -c build/phpunit.xml
- name: Installing npm dependencies (for testing only)
run: npm ci
- name: Run PHP built-in webserver (in background) and newman tests
run: |
php -S localhost:8000 example/server.php &
npx newman run -e tests/postman/tus.postman_environment.json tests/postman/tus.postman_collection.json --bail