Enabled codecov coverage uploading for E2E tests

refs https://github.com/TryGhost/Toolbox/issues/475

- this enables uploading to codecov for the E2E tests, and separates the
  unit + E2E test results with flags
This commit is contained in:
Daniel Lockyer 2022-11-17 10:44:34 +07:00 committed by Daniel Lockyer
parent 3e0ec26408
commit 6a3ea02fed

View File

@ -230,6 +230,11 @@ jobs:
endTime="$(date +%s)"
echo "test_time=$(($endTime-$startTime))" >> $GITHUB_ENV
- uses: codecov/codecov-action@v3
if: startsWith(matrix.node, '16') && contains(matrix.env.DB, 'mysql')
with:
flags: e2e-tests
# Continue on error if TailScale service is down
- name: Tailscale Action
timeout-minutes: 2
@ -342,6 +347,8 @@ jobs:
path: ghost
- run: rsync -av --remove-source-files ghost/coverage/* ghost/
- uses: codecov/codecov-action@v3
with:
flags: unit-tests
canary:
needs: [lint, ghost-cli, admin-tests, migrations, unit-tests, database-tests]