-
Notifications
You must be signed in to change notification settings - Fork 279
112 lines (110 loc) · 3.67 KB
/
commit-stage.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: Commit Stage
on:
push:
schedule: # Every Monday
- cron: '0 0 * * 1'
jobs:
build:
name: Build and Test ${{ matrix.project }}
runs-on: ubuntu-22.04
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
project: [
Chapter02/02-end/catalog-service,
Chapter03/03-end/catalog-service,
Chapter04/04-end/catalog-service,
Chapter04/04-end/config-service,
Chapter05/05-intermediate/catalog-service,
Chapter05/05-end/catalog-service,
Chapter05/05-end/catalog-service-jpa,
Chapter05/05-end/config-service,
Chapter06/06-end/catalog-service,
Chapter06/06-end/config-service,
Chapter07/07-end/catalog-service,
Chapter07/07-end/config-service,
Chapter08/08-end/catalog-service,
Chapter08/08-end/config-service,
Chapter08/08-end/order-service,
Chapter09/09-end/catalog-service,
Chapter09/09-end/config-service,
Chapter09/09-end/edge-service,
Chapter09/09-end/order-service,
Chapter10/10-intermediate/dispatcher-service,
Chapter10/10-end/catalog-service,
Chapter10/10-end/config-service,
Chapter10/10-end/order-service,
Chapter10/10-end/edge-service,
Chapter10/10-end/dispatcher-service,
Chapter11/11-end/catalog-service,
Chapter11/11-end/config-service,
Chapter11/11-end/order-service,
Chapter11/11-end/edge-service,
Chapter11/11-end/dispatcher-service,
Chapter12/12-end/catalog-service,
Chapter12/12-end/config-service,
Chapter12/12-end/order-service,
Chapter12/12-end/edge-service,
Chapter12/12-end/dispatcher-service,
Chapter13/13-end/catalog-service,
Chapter13/13-end/config-service,
Chapter13/13-end/order-service,
Chapter13/13-end/edge-service,
Chapter13/13-end/dispatcher-service,
Chapter14/14-end/catalog-service,
Chapter14/14-end/config-service,
Chapter14/14-end/order-service,
Chapter14/14-end/edge-service,
Chapter14/14-end/dispatcher-service,
Chapter15/15-end/catalog-service,
Chapter15/15-end/config-service,
Chapter15/15-end/order-service,
Chapter15/15-end/edge-service,
Chapter15/15-end/dispatcher-service,
Chapter16/16-end/quote-service,
Chapter16/16-end/quote-function,
]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Build, unit tests and integration tests
run: |
cd ${{ matrix.project }}
chmod +x gradlew
./gradlew build
native-build:
name: Native Build and Test ${{ matrix.project }}
runs-on: ubuntu-22.04
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
project: [
Chapter16/16-end/quote-service,
Chapter16/16-end/quote-function,
]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build, unit tests and integration tests
run: |
cd ${{ matrix.project }}
chmod +x gradlew
./gradlew nativeBuild