-
Notifications
You must be signed in to change notification settings - Fork 9
159 lines (156 loc) · 3.94 KB
/
build.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: All Examples Build Verification
on:
pull_request:
types: [opened, synchronize, edited, reopened]
push:
branches:
- main
workflow_dispatch:
env:
GODEBUG: x509sha1=1
jobs:
examples-build-verification:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Setup GO
uses: actions/setup-go@v3
with:
go-version: '1.19.9'
- name: Install Nats Server
run: |
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@main | PREFIX=. sh
sudo mv nats-server /usr/local/bin
nats-server -v
- name: Check out code
uses: actions/checkout@v3
- name: Auth Callout
run: |
pushd auth-callout
chmod +x gradlew
./gradlew compileJava
popd
- name: Chain of Command
run: |
pushd chain-of-command
chmod +x gradlew
./gradlew compileJava
popd
- name: Core Reply Request Patterns
run: |
pushd core-request-reply-patterns
chmod +x gradlew
./gradlew compileJava
popd
- name: Encoding
run: |
pushd encoding
chmod +x gradlew
./gradlew compileJava
popd
- name: Error And Heartbeat Experiments
run: |
pushd error-and-heartbeat-experiments
chmod +x gradlew
./gradlew compileJava
popd
- name: File Transfer Manual
run: |
pushd file-transfer-manual
chmod +x gradlew
./gradlew compileJava
popd
- name: File Transfer Object Store
run: |
pushd file-transfer-object-store
chmod +x gradlew
./gradlew compileJava
popd
- name: Functional Examples
run: |
pushd functional-examples
chmod +x gradlew
./gradlew compileJava
popd
- name: Hello World
run: |
pushd hello-world
chmod +x gradlew
./gradlew test
popd
- name: Js Multi Tool
run: |
pushd js-multi-tool
chmod +x gradlew
./gradlew clean compileJava
mvn clean compile
popd
- name: Js Over Core
run: |
pushd js-over-core
chmod +x gradlew
./gradlew clean compileJava
popd
- name: Multi Subject Worker
run: |
pushd multi-subject-worker
chmod +x gradlew
./gradlew clean compileJava
popd
- name: Nats By Example
run: |
pushd nats-by-example
chmod +x gradlew
./gradlew clean compileJava
popd
- name: OCSP
run: |
pushd ocsp
chmod +x gradlew
./gradlew compileJava
popd
- name: Recreate Consumer
run: |
pushd recreate-consumer
chmod +x gradlew
./gradlew compileJava
popd
- name: Robust Push Subscription
run: |
pushd robust-push-subscription
chmod +x gradlew
./gradlew compileJava
popd
- name: Server Pool
run: |
pushd server-pool
chmod +x gradlew
./gradlew compileJava
popd
- name: SSL Context Factory
run: |
pushd ssl-context-factory
chmod +x gradlew
./gradlew compileJava
popd
- name: Starter Gradle Groovy
run: |
pushd starter-gradle-groovy
chmod +x gradlew
./gradlew test
popd
- name: Starter Gradle Kotlin
run: |
pushd starter-gradle-kotlin
chmod +x gradlew
./gradlew test
popd
- name: Starter Maven
run: |
pushd starter-maven
mvn test
popd