Skip to content

Build

Build #195

Workflow file for this run

name: Build
on:
push:
schedule:
- cron: '0 1 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: sqlite
tools: composer, phpcs, phpmd, phpunit
- uses: actions/checkout@v4
- uses: testspace-com/setup-testspace@v1
with:
domain: samples
- name: Install
run: |
composer install
- name: Analyze
run: |
vendor/bin/phpcs src tests --report-gitblame=analysis-sniffer-blame.txt --report-checkstyle=analysis-sniffer.xml || true
vendor/bin/phpmd src,tests xml codesize,naming,unusedcode --reportfile analysis-mess.xml || true
- name: Test
run: |
vendor/bin/phpunit tests/unit --log-junit tests-results.xml --coverage-clover coverage.xml
- name: Push
run: |
testspace @.testspace.txt
if: always()