-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #524 from hapifhir/do-20230509-smoke-test-ci
Create smoke-tests.yml
- Loading branch information
1 parent
22722d8
commit 82fcde3
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters