I would like to add following integration test to our library:
-
start up 2 Spring Boot apps (graphql servers) using our library
-
start up node app (graphql gateway) that connects to the Spring Boot apps
-
post HTTP request to the node app and verify the response
-
shut down all apps
i.e. something along the lines
jobs:
build:
steps:
-uses: actions/checkout@v2
-name: Set up Java 11
uses: actions/setup-java@v1
with:
java-version: 11
-name: Start App 1
run: ./gradlew :app1:bootRun
-name: Start App 2
run: ./gradlew :app2:bootRun
-name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: start gateway
run: |
npm install
npm start
- name: verify
run: |
curl -o response.json -H "Content-Type: application/json" -X POST -d '{"xyz":"abc"}'
jq '.xyz == abc'
# shutdown all apps
Was wondering if GH actions can support such workflows?