From d28b4bcdcc2d38561c2c2028619e37a45cd5bf74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Sun, 22 May 2022 22:53:09 +0200 Subject: [PATCH] ci: Separate unitary and integration tests in two steps. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- .github/workflows/feature.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/feature.yaml b/.github/workflows/feature.yaml index 4fb602c9..3a677407 100644 --- a/.github/workflows/feature.yaml +++ b/.github/workflows/feature.yaml @@ -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 +