-
Notifications
You must be signed in to change notification settings - Fork 172
80 lines (65 loc) · 2.41 KB
/
cd.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CD
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
# MVD runs using docker compose based setup with no dependency on cloud services.
jobs:
VerifyLocalTests:
permissions:
checks: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/gradle-setup
# Use EDC FileSystem vault for CI run.
- name: 'Build launcher'
run: ./gradlew -DuseFsVault="true" :launchers:connector:shadowJar
# Build Registration Service runtime JAR locally.
- name: 'Build Registration Service launcher'
run: ./gradlew -DuseFsVault="true" :launchers:registrationservice:shadowJar
# Download the CLI's into the test directory
- name: 'Copy Registration Service and IdentityHub CLI'
run: ./gradlew getJarsForLocalTest getJarsForAzureTest
- name: 'Upgrade docker compose (for --wait option)'
run: |
sudo curl -L https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: 'Run MVD docker compose (incl. MVD UI)'
run: docker compose --profile ui -f system-tests/docker-compose.yml up --build --wait
timeout-minutes: 10
env:
REGISTRATION_SERVICE_LAUNCHER_PATH: ./launchers/registrationservice
MVD_UI_PATH: DataDashboard
- name: 'Unit and system tests'
run: ./gradlew test -DincludeTags="ComponentTest,EndToEndTest"
timeout-minutes: 10
env:
JACOCO: "true"
TEST_ENVIRONMENT: "local"
- name: 'docker compose logs'
run: docker compose -f system-tests/docker-compose.yml logs
if: always()
env:
REGISTRATION_SERVICE_LAUNCHER_PATH: ./launchers/registrationservice
MVD_UI_PATH: DataDashboard
- name: "Publish Gatling report"
uses: actions/upload-artifact@v4
if: always()
with:
name: Gatling reports (local run)
path: '**/build/reports/gatling/**'
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: "**/test-results/**/*.xml"
- name: CodeCov
uses: codecov/codecov-action@v4