Skip to content

Commit ec44991

Browse files
committed
Extract the shared logic to separate package
Signed-off-by: kvmw <[email protected]>
1 parent b7276a3 commit ec44991

34 files changed

+257
-3177
lines changed

.cfignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git/
2+
node_modules/
3+
.DS_Store
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
name: greeter-ci
1+
name: ci
22

33
on:
44
push:
5-
branches: ["main"]
6-
paths: ["greeter/**"]
5+
branches: ['main']
76
pull_request:
8-
branches: ["main"]
9-
paths: ["greeter/**"]
7+
branches: ['main']
108

119
jobs:
1210
check:
@@ -19,14 +17,11 @@ jobs:
1917
- name: Setup Node.js
2018
uses: actions/setup-node@v4
2119
with:
22-
node-version: "20"
23-
cache: "npm"
24-
cache-dependency-path: "greeter/package-lock.json"
20+
node-version: '20'
21+
cache: 'npm'
2522

2623
- name: Install dependencies
27-
working-directory: ./greeter
2824
run: npm ci
2925

3026
- name: Check Lint
31-
working-directory: ./greeter
3227
run: npm run check

.github/workflows/greeter-messages-ci.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Service Registry nodejs sample
1+
# Service Registry Node.js sample
22

3-
![Greeter CI](https://github.com/spring-cloud-services-samples/greeting-nodejs/actions/workflows/greeter-ci.yml/badge.svg)
4-
![Greeter Messages CI](https://github.com/spring-cloud-services-samples/greeting-nodejs/actions/workflows/greeter-messages-ci.yml/badge.svg)
3+
![CI](https://github.com/spring-cloud-services-samples/greeting-nodejs/actions/workflows/ci.yml/badge.svg)
54

6-
Sample nodejs application demonstrating the use of Service Registry in Tanzu Platform for Cloud Foundry.
5+
Sample Node.js application demonstrating the use of Service Registry in Tanzu Platform for Cloud Foundry.
76

87
For information on the Service Registry product in Tanzu Platform for Cloud Foundry, please [see the documentation](https://techdocs.broadcom.com/us/en/vmware-tanzu/spring/spring-cloud-services-for-cloud-foundry/3-3/scs-tanzu/service-registry-index.html).
98

@@ -15,16 +14,22 @@ For information on the Service Registry product in Tanzu Platform for Cloud Foun
1514
cf create-service p.service-registry standard greeter-service-registry
1615
```
1716

17+
- Install dependencies
18+
19+
```
20+
npm install && cf push
21+
```
22+
1823
- Push the `greeter-messages` application:
1924

2025
```
21-
cd greeter-messages && npm install && cf push
26+
cd greeter-messages && cf push
2227
```
2328

2429
- Push the `greeter` application:
2530

2631
```
27-
cd greeter && npm install && cf push
32+
cd greeter && cf push
2833
```
2934

3035
## Trying It Out

0 commit comments

Comments
 (0)