From 65c59cee1caeaa36a68fbb288df68487004b3b9d Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 14 Apr 2022 18:13:33 +0200 Subject: [PATCH] [TASK] Run unit tests before functional tests for coverage (#431) We generally should run the faster tests first so that any possible breakage occurs as soon as possible, hence providing faster feedback. --- .github/workflows/codecoverage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index ddb6de6..c72f71d 100644 --- a/.github/workflows/codecoverage.yml +++ b/.github/workflows/codecoverage.yml @@ -35,6 +35,8 @@ jobs: composer show - name: "Start MySQL" run: "sudo /etc/init.d/mysql start" + - name: "Run unit tests with coverage" + run: composer ci:coverage:unit - name: "Run functional tests with coverage" run: | export typo3DatabaseName="typo3"; @@ -42,8 +44,6 @@ jobs: export typo3DatabaseUsername="root"; export typo3DatabasePassword="root"; composer ci:coverage:functional - - name: "Run unit tests with coverage" - run: composer ci:coverage:unit - name: "Merge coverage results" run: composer ci:coverage:merge - name: "Generate coverage badge"