forked from defenseunicorns/uds-identity-config
-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (80 loc) · 2.92 KB
/
test.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Test
on:
pull_request:
branches: [main]
types: [milestoned, opened, reopened, synchronize]
# Abort prior jobs in the same workflow / PR
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
docker_build:
runs-on: ubuntu-latest
name: Test Docker Build
permissions:
pull-requests: read
contents: read
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Environment setup
uses: defenseunicorns/uds-common/.github/actions/setup@76287d41ec5f06ecbdd0a6453877a78675aceffe # v0.11.2
- name: Test building the docker image
run: uds run dev-build --no-progress
zarf_build:
runs-on: ubuntu-latest
name: Test Zarf Build
permissions:
pull-requests: read
contents: read
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Environment setup
uses: defenseunicorns/uds-common/.github/actions/setup@76287d41ec5f06ecbdd0a6453877a78675aceffe # v0.11.2
- name: Test building a zarf package
run: uds run build-zarf-pkg --no-progress
plugin_unit_tests:
runs-on: ubuntu-latest
name: Keycloak Plugin Unit Tests
permissions:
pull-requests: read
contents: read
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Environment setup
uses: defenseunicorns/uds-common/.github/actions/setup@76287d41ec5f06ecbdd0a6453877a78675aceffe # v0.11.2
- name: Set up JDK 17
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4
with:
java-version: '17'
distribution: 'temurin'
- name: Plugin Unit Tests
run: mvn -B package --file src/plugin/pom.xml
uds_core_base_integration:
runs-on: ubuntu-latest
name: UDS Core + Identity Config smoke test with base realm.json
permissions:
pull-requests: read
contents: read
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Environment setup
uses: defenseunicorns/uds-common/.github/actions/setup@76287d41ec5f06ecbdd0a6453877a78675aceffe # v0.11.2
- name: Smoke Tests
run: uds run uds-core-smoke-test --no-progress
uds_core_cypress_integration:
runs-on: ubuntu-latest
name: UDS Core + Identity Config cypress integration tests
permissions:
pull-requests: read
contents: read
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Environment setup
uses: defenseunicorns/uds-common/.github/actions/setup@76287d41ec5f06ecbdd0a6453877a78675aceffe # v0.11.2
- name: Cypress Integration Tests
run: uds run uds-core-integration-tests --no-progress