Skip to content

Improve Testcontainers Module #2120

Improve Testcontainers Module

Improve Testcontainers Module #2120

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: JavaCI-PR
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- '**/README.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'pull_request_template.md'
- '.lift/.toml'
- '**/.lift/.toml'
- 'SECURITY.md'
- 'LICENSE'
- '.github/ISSUE_TEMPLATE/**'
- '.github/assets/**'
- '.github/workflows/**'
- '!.github/workflows/gradle-ci.yml'
- '.github/pr-labeler.yml'
- 'renovate.json'
- '.whitesource'
- 'gradle/libs.versions.toml'
- 'config/ossindex/exclusions.txt'
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
steps:
# Set up build environment
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
- name: Build with Gradle
run: ./gradlew printVersion build
- name: Upload Test reports - App
if: always()
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: test-report-lowkey-vault-app
path: |
lowkey-vault-app/build/reports/tests/test
lowkey-vault-app/build/reports/abort-mission/abort-mission-report.html
retention-days: 5
- name: Upload Test reports - Docker
if: always()
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: test-report-lowkey-vault-docker
path: |
lowkey-vault-docker/build/reports/cucumber
lowkey-vault-docker/build/reports/abort-mission/abort-mission-report.html
retention-days: 5
- name: Upload Test reports - Testcontainers
if: always()
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: test-report-lowkey-vault-testcontainers
path: lowkey-vault-testcontainers/build/reports/tests/test
retention-days: 5
- name: Upload coverage to Codecov - App
if: ${{ github.repository_owner == 'nagyesta' }}
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lowkey-vault-app/build/reports/jacoco/report.xml
disable_search: true
flags: app
fail_ci_if_error: false
- name: Upload coverage to Codecov - Client
if: ${{ github.repository_owner == 'nagyesta' }}
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lowkey-vault-client/build/reports/jacoco/report.xml
disable_search: true
flags: client
fail_ci_if_error: false
- name: Upload coverage to Codecov - Testcontainers
if: ${{ github.repository_owner == 'nagyesta' }}
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lowkey-vault-testcontainers/build/reports/jacoco/report.xml
disable_search: true
flags: testcontainers
fail_ci_if_error: false