-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (49 loc) · 1.39 KB
/
next-academic-year-tests.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
name: Next academic year tests
concurrency: next_academic_year_tests_${{ github.ref_name }}
on:
workflow_dispatch:
schedule: # At 06:00
- cron: '0 6 * * *'
permissions:
contents: write
deployments: write
packages: 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 }}
test:
name: Test
needs: [build]
uses: ./.github/workflows/tests.yml
secrets: inherit
with:
docker-image: ${{needs.build.outputs.docker-image}}
image-tag: ${{ needs.build.outputs.image-tag }}
use-next-academic-year: false
next_academic_year_test:
name: Next academic year tests
needs: [build]
uses: ./.github/workflows/tests.yml
secrets: inherit
with:
docker-image: ${{needs.build.outputs.docker-image}}
image-tag: ${{ needs.build.outputs.image-tag }}
use-next-academic-year: true