-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (49 loc) · 1.42 KB
/
code-coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Code Coverage
on:
workflow_dispatch:
schedule:
- cron: "0 23 * * *"
pull_request:
types: [opened, reopened, synchronize, labeled]
permissions:
contents: write
deployments: write
packages: write
pull-requests: write
jobs:
build:
name: Build
env:
DOCKER_IMAGE: ghcr.io/dfe-digital/register-trainee-teachers
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_HOSTNAME: localhost
outputs:
docker-image: ${{ env.DOCKER_IMAGE }}
image-tag: ${{ env.IMAGE_TAG }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build/
with:
token: ${{ secrets.GITHUB_TOKEN }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
azure-credentials: ${{ secrets.AZURE_CREDENTIALS_REVIEW }}
coverage_tests:
name: Coverage tests
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/coverage-tests/
with:
docker-image: ${{needs.build.outputs.docker-image}}
image-tag: ${{ needs.build.outputs.image-tag }}
use-next-academic-year: false
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
azure-credentials: ${{ secrets.AZURE_CREDENTIALS_REVIEW }}
codecov-token: ${{ secrets.CODECOV_TOKEN }}