Skip to content

Merge branch 'dev' into 459-fr-finish-reverse-proxy-setup #65

Merge branch 'dev' into 459-fr-finish-reverse-proxy-setup

Merge branch 'dev' into 459-fr-finish-reverse-proxy-setup #65

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI - Server - Driver Server
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ "**" ]
paths:
- "software/libs/open-qm-driver/**"
- "software/drivers/open-qm-driver-server/**"
- ".github/workflows/driverServer.yml"
pull_request:
branches: [ "**" ]
paths:
- "software/libs/open-qm-driver/**"
- "software/drivers/open-qm-driver-server/**"
- ".github/workflows/driverServer.yml"
workflow_call:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
defaults:
run:
working-directory: "software/drivers/open-qm-driver-server"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
buildTest:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Install socat
run: sudo apt-get install -y socat
- name: Setup core lib
run: ./gradlew publishToMavenLocal
working-directory: "software/libs/open-qm-core"
- name: Setup driver lib
run: ./gradlew publishToMavenLocal
working-directory: "software/libs/open-qm-driver"
- uses: gradle/gradle-build-action@v2
with:
arguments: check
build-root-directory: "software/drivers/open-qm-driver-server"
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: Code Coverage Report
path: "software/drivers/open-qm-driver-server/build/jacoco-report"
- name: Archive Test Report
uses: actions/upload-artifact@v4
with:
name: Test Report
path: "software/drivers/open-qm-driver-server/build/reports/tests/test"
# https://github.com/marketplace/actions/test-reporter
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Test Report # Name of the check run which will be created
path: "software/drivers/open-qm-driver-server/build/test-results/test/*.xml" # Path to test results
reporter: java-junit # Format of test results
# - name: Archive Selenium Recordings
# uses: actions/upload-artifact@v4
# with:
# name: Selenium Recordings
# path: "software/drivers/open-qm-driver-server/build/seleniumRecordings"
integrationTest:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Install socat
run: sudo apt-get install -y socat
- run: ./gradlew publishToMavenLocal
working-directory: "software/libs/open-qm-core"
- run: ./gradlew publishToMavenLocal
working-directory: "software/libs/open-qm-driver"
- uses: gradle/gradle-build-action@v2
with:
arguments: quarkusIntTest -Dquarkus.package.type=native -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true
build-root-directory: "software/drivers/open-qm-driver-server"
# https://github.com/marketplace/actions/test-reporter
- name: Integration Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Integration Test Report # Name of the check run which will be created
path: "software/drivers/open-qm-driver-server/build/test-results/quarkusIntTest/*.xml" # Path to test results
reporter: java-junit # Format of test results
- name: Archive Integration Test Report
uses: actions/upload-artifact@v4
with:
name: Integration Test Report
path: "software/drivers/open-qm-driver-server/build/reports/tests/quarkusIntTest"
# TODO:: save off image file
# - name: Publish Unit Test Results
# uses: EnricoMi/[email protected]
# if: always()
# with:
# github_token: "${{ secrets.GITHUB_TOKEN }}"
# files: "software/open-qm-base-station/build/test-results/**/*.xml"