forked from beberlei/bankaccount
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 960 Bytes
/
ci.yml
File metadata and controls
33 lines (32 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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()