Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge smoke testing docker updates to release tracking branch #536

Closed
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will build the Java project with Maven and peform IntelliJ smoke tests
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Smoke Tests

on:
push:
branches:
- '**'
paths-ignore:
- "charts/**"
pull_request:
branches: [ master ]
paths-ignore:
- "charts/**"

jobs:
build_and_smoke_test:

runs-on: ubuntu-latest

steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Maven
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
- name: Download and install HTTP client
run: |
curl -f -L -o ijhttp.zip "https://jb.gg/ijhttp/latest"
unzip ijhttp.zip
- name: Start server with jetty
run: |
mvn jetty:run & export JPA_PROCESS=$!
sleep 60
- name: Execute smoke tests
run: ./ijhttp/ijhttp ./src/test/smoketest/plain_server.http --env-file ./src/test/smoketest/http-client.env.json --env default


Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,4 @@ POST http:https://{{host}}/fhir/Patient/{{batch_patient_id}}/$validate
const resourceType = response.body.resourceType;
client.assert(resourceType === "OperationOutcome", "Expected 'OperationOutcome' but received '" + resourceType + "'");
});
%}
%}
Loading