ci: Separate unitary and integration tests in two steps.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-05-22 22:53:09 +02:00
parent 8cef67edbc
commit d28b4bcdcc

View File

@@ -73,10 +73,21 @@ jobs:
mysql ${MYSQL_OPTS} -e 'CREATE DATABASE `'"${DB_NAME}"'` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;'
mysql ${MYSQL_OPTS} ${DB_NAME} < ./schemas/dbstructure.sql
- uses: paambaati/codeclimate-action@v3.0.0
- name: Unitary tests
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
XDEBUG_MODE: coverage
with:
coverageCommand: ./vendor/bin/phpunit -c ./tests/phpunit.xml --testsuite core,unitary
coverageCommand: ./vendor/bin/phpunit -c ./tests/phpunit.xml --testsuite unitary
coverageLocations: ./tests/_output/coverage-clover.xml:clover
- name: Integration tests
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
XDEBUG_MODE: coverage
with:
coverageCommand: ./vendor/bin/phpunit -c ./tests/phpunit.xml --testsuite core
coverageLocations: ./tests/_output/coverage-clover.xml:clover