Skip to content

Updated ci deps and test pushing image to ghcr.io #22

Updated ci deps and test pushing image to ghcr.io

Updated ci deps and test pushing image to ghcr.io #22

Workflow file for this run

# 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/**"
permissions: read-all
jobs:
build_and_smoke_test:
runs-on: ubuntu-22.04
steps:
- name: Checkout project
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK 17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: temurin
java-version: 17
- name: Build with Maven
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
- name: Docker Pull HTTP client
run: docker pull jetbrains/intellij-http-client
- name: Start server with jetty
run: |
mvn jetty:run & export JPA_PROCESS=$!
sleep 80
- name: Execute smoke tests
run: docker run --rm -v $PWD:/workdir --add-host host.docker.internal:host-gateway jetbrains/intellij-http-client -D src/test/smoketest/plain_server.http --env-file src/test/smoketest/http-client.env.json --env default