generated from DFE-Digital/govuk-dotnet-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (34 loc) · 1.24 KB
/
docker-dev-integration-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
---
name: Run integration tests
on:
pull_request:
branches:
- master
- main
jobs:
build-test-scan:
name: Build image and integration test
runs-on: ubuntu-latest
env:
CPD_GOOGLEANALYTICSTAG: ${{secrets.TF_VAR_CPD_GOOGLEANALYTICSTAG}}
CPD_SPACE_ID: ${{secrets.TF_VAR_CPD_SPACE_ID}}
CPD_PREVIEW_KEY: ${{secrets.TF_VAR_CPD_PREVIEW_KEY}}
CPD_DELIVERY_KEY: ${{secrets.TF_VAR_CPD_DELIVERY_KEY}}
CPD_CLARITY: ${{secrets.TF_VAR_CPD_CLARITY}}
steps:
- uses: actions/checkout@v3
- name: Build the Docker App Image
run: cd Childrens-Social-Care-CPD; docker build . --file Dockerfile --tag childrens-social-care-cpd:latest
- name: Run the dev integration tests
run: cd browser-tests/dev-integration-tests; docker-compose up --exit-code-from dev-integration-tests
- uses: actions/upload-artifact@v3
name: Playwright report
if: always()
with:
name: playwright-report
retention-days: 7
path: |
${{ github.workspace }}/browser-tests/dev-integration-tests/playwright-report
- name: Run Tidy up
if: always()
run: cd browser-tests/dev-integration-tests; docker-compose down --volumes