Skip to content

Create dependabot.yml #62

Create dependabot.yml

Create dependabot.yml #62

Workflow file for this run

name: Liquibase Test Harness
on:
pull_request:
push:
branches:
- dev
- main
jobs:
liquibase-test-harness:
name: Liquibase Test Harness
runs-on: ubuntu-latest
strategy:
matrix:
liquibase-support-level: [Foundational] # Define the different test levels to run
fail-fast: false # Set fail-fast to false to run all test levels even if some of them fail
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Temurin Java 17 # Set up Java 17 with Temurin distribution and cache the Maven packages
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: 'maven'
- name: Build with Maven # Build the code with Maven (skip tests)
run: mvn --file liquibase-couchbase/pom.xml -B -ntp -DskipTests=true package
- name: Run ${{ matrix.liquibase-support-level }} Liquibase Test Harness # Run the Liquibase test harness at each test level
continue-on-error: true # Continue to run the action even if the previous steps fail
run: mvn --file liquibase-couchbase/pom.xml -ntp -Dtest=harness.** test
- name: Test Reporter # Generate a test report using the Test Reporter action
uses: dorny/test-reporter@v1.6.0
if: always() # Run the action even if the previous steps fail
with:
name: Liquibase Test Harness - ${{ matrix.liquibase-support-level }} Reports # Set the name of the test report
path: liquibase-couchbase/target/surefire-reports/TEST-*.xml # Set the path to the test report files
reporter: java-junit # Set the reporter to use
fail-on-error: false # Set fail-on-error to false to show report even if it has failed tests