-
Notifications
You must be signed in to change notification settings - Fork 315
48 lines (45 loc) · 1.29 KB
/
showcaseTests.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
name: Generator - Showcase Tests
on:
push:
branches:
- main
pull_request:
paths:
- 'spring-cloud-generator/**'
branches:
- 'main'
workflow_dispatch:
jobs:
showcaseTests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Java 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Install spring-cloud-gcp
# Installs spring-cloud-gcp from root,
# including spring-cloud-generator module
run: |
./mvnw \
--batch-mode \
--no-transfer-progress \
--show-version \
--threads 1.5C \
--define maven.test.skip=true \
--define maven.javadoc.skip=true \
install
- name: Verify generation of showcase-spring-starter
# Runs showcase-spring-starter golden tests
working-directory: spring-cloud-generator
id: verify-showcase-spring-starter
run: |
set -x
set -e
bash scripts/generate-showcase.sh
- name: Unit tests for showcase-spring-starter
# Runs showcase-spring-starter unit tests
working-directory: spring-cloud-generator/showcase/showcase-spring-starter
run: |
../../../mvnw verify