mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 23:24:07 +01:00
ci: Separate unitary and integration tests in two steps.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
15
.github/workflows/feature.yaml
vendored
15
.github/workflows/feature.yaml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user