-
Notifications
You must be signed in to change notification settings - Fork 34
90 lines (84 loc) · 2.92 KB
/
ci.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
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
name: Continuous integration
on:
push:
pull_request:
workflow_dispatch:
jobs:
cfn-nag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: stelligent/cfn_nag@master
with:
input_path: labs/unicorn-location-api/template.yaml
- uses: stelligent/cfn_nag@master
with:
input_path: labs/unicorn-location-api/final/unicorn-location-api-final/template.yaml
- uses: stelligent/cfn_nag@master
with:
input_path: labs/unicorn-stock-broker/template.yaml
build-unicorn-store:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 17
cache: maven
- name: mvn db-setup
run: ./mvnw package -f infrastructure/db-setup/pom.xml
working-directory: ./labs/unicorn-store
- name: mvn cdk
run: ./mvnw package -f infrastructure/cdk/pom.xml
working-directory: ./labs/unicorn-store
- name: mvn unicorn-store-spring
run: ./mvnw package -f software/unicorn-store-spring/pom.xml
working-directory: ./labs/unicorn-store
- name: mvn unicorn-store-spring-graalvm
run: ./mvnw package -f software/alternatives/unicorn-store-spring-graalvm/pom.xml
working-directory: ./labs/unicorn-store
- name: mvn unicorn-store-micronaut
run: ./mvnw package -f software/alternatives/unicorn-store-micronaut/pom.xml
working-directory: ./labs/unicorn-store
- name: mvn unicorn-store-quarkus
run: ./mvnw package -f software/alternatives/unicorn-store-quarkus/pom.xml
working-directory: ./labs/unicorn-store
- name: mvn unicorn-audit-service
run: ./mvnw package -f software/alternatives/unicorn-audit-service/pom.xml
working-directory: ./labs/unicorn-store
- name: install cdk
run: npm install -g aws-cdk
- name: synth
run: cdk synth
working-directory: ./labs/unicorn-store/infrastructure/cdk
build-unicorn-location-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 17
cache: maven
- name: mvn initial
run: mvn package
working-directory: ./labs/unicorn-location-api/UnicornLocationFunction
- name: mvn final
run: mvn package
working-directory: ./labs/unicorn-location-api/final/unicorn-location-api-final/UnicornLocationFunction
build-unicorn-stock-broker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 17
cache: maven
- name: mvn build
run: mvn package
working-directory: ./labs/unicorn-stock-broker