-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathjava-spring-boot-integ-tests.yml
More file actions
85 lines (73 loc) · 2.29 KB
/
java-spring-boot-integ-tests.yml
File metadata and controls
85 lines (73 loc) · 2.29 KB
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
name: Java Spring Boot integration tests
permissions: { }
on:
push:
branches: [ main ]
paths:
- "java/spring_boot/**"
- ".github/workflows/java-spring-boot-integ-tests.yml"
pull_request:
branches: [ main ]
paths:
- "java/spring_boot/**"
- ".github/workflows/java-spring-boot-integ-tests.yml"
workflow_dispatch:
jobs:
test-maven:
runs-on: ubuntu-latest
permissions:
id-token: write # required by aws-actions/configure-aws-credentials
concurrency:
group: ${{ github.workflow }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: "17"
distribution: "corretto"
architecture: x64
cache: maven
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v5
with:
role-to-assume: ${{ secrets.JAVA_IAM_ROLE }}
aws-region: us-east-1
- name: Run Maven integration test
working-directory: ./java/spring_boot
env:
CLUSTER_USER: admin
CLUSTER_ENDPOINT: ${{ secrets.JAVA_SPRING_BOOT_CLUSTER_ENDPOINT }}
REGION: ${{ secrets.JAVA_SPRING_BOOT_CLUSTER_REGION }}
EXIT_AFTER_TEST: true
run: mvn spring-boot:run
test-gradle:
runs-on: ubuntu-latest
permissions:
id-token: write # required by aws-actions/configure-aws-credentials
concurrency:
group: ${{ github.workflow }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: "17"
distribution: "corretto"
architecture: x64
cache: gradle
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v5
with:
role-to-assume: ${{ secrets.JAVA_IAM_ROLE }}
aws-region: us-east-1
- name: Run Gradle integration test
working-directory: ./java/spring_boot
env:
CLUSTER_USER: admin
CLUSTER_ENDPOINT: ${{ secrets.JAVA_SPRING_BOOT_CLUSTER_ENDPOINT }}
REGION: ${{ secrets.JAVA_SPRING_BOOT_CLUSTER_REGION }}
EXIT_AFTER_TEST: true
run: ./gradlew bootRun