mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-23 01:16:13 +01:00

[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.
This commit is contained in:
Oliver Klee 2022-04-14 18:13:33 +02:00 committed by GitHub
parent e1f04ba58b
commit 65c59cee1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,8 @@ jobs:
composer show composer show
- name: "Start MySQL" - name: "Start MySQL"
run: "sudo /etc/init.d/mysql start" run: "sudo /etc/init.d/mysql start"
- name: "Run unit tests with coverage"
run: composer ci:coverage:unit
- name: "Run functional tests with coverage" - name: "Run functional tests with coverage"
run: | run: |
export typo3DatabaseName="typo3"; export typo3DatabaseName="typo3";
@ -42,8 +44,6 @@ jobs:
export typo3DatabaseUsername="root"; export typo3DatabaseUsername="root";
export typo3DatabasePassword="root"; export typo3DatabasePassword="root";
composer ci:coverage:functional composer ci:coverage:functional
- name: "Run unit tests with coverage"
run: composer ci:coverage:unit
- name: "Merge coverage results" - name: "Merge coverage results"
run: composer ci:coverage:merge run: composer ci:coverage:merge
- name: "Generate coverage badge" - name: "Generate coverage badge"