Skip to content

Run Standard Integration Tests #230

Run Standard Integration Tests

Run Standard Integration Tests #230

name: Run Standard Integration Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- '*'
paths-ignore:
- '**/release_draft.yml'
- '**/maven*.yml'
jobs:
standard-integration-tests:
name: 'Run standard container integration tests'
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Get changed files'
id: changed-files-specific
uses: tj-actions/changed-files@v41
with:
files_yaml: |
doc:
- '**/*.md'
- '**/docs/**'
- '**/*.jpg'
- '**/*.png'
- name: 'Check changed files'
id: changed-files
if: ${{steps.changed-files-specific.outputs.doc_only_changed == 'false' && steps.changed-files-specific.outputs.doc_only_modified == 'false'}}
run: echo "ONLY_DOCS=false" >> $GITHUB_OUTPUT
- name: 'Set up JDK 8'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 8
- name: 'Run standard integration tests'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
run: |
./gradlew --no-parallel --no-daemon test-all-docker
- name: 'Archive junit results'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/upload-artifact@v2
with:
name: junit-report
path: ./wrapper/build/test-results
retention-days: 5
- name: 'Archive html summary report'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/upload-artifact@v2
with:
name: html-summary-report
path: ./wrapper/build/report
retention-days: 5