Skip to content

chore(deps): update renovatebot/github-action action to v41 #8671

chore(deps): update renovatebot/github-action action to v41

chore(deps): update renovatebot/github-action action to v41 #8671

name: "Test published JGiven"
on: [push, pull_request]
jobs:
validate_example_projects_work:
name: Test that the examples are actually working
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@v4.5.0
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Android SDK
uses: android-actions/setup-android@v3.2.1
- name: Produce a local release with version 1.1-t
run: source scripts/local_release_with_version.sh
- name: Test Kotlin Example Project
run: >
source scripts/source_files/helper_functions.sh
&& runGradleTestOnGivenProject example-projects/kotlin/build.gradle 1.1-t
- name: Test JUnit5 Example Project
run: >
sudo apt-get install firefox
&& source scripts/source_files/helper_functions.sh
&& runGradleTestOnGivenProject example-projects/junit5/build.gradle 1.1-t
- name: Test Selenium Example Project
run: >
source scripts/source_files/helper_functions.sh
&& runGradleTestOnGivenProject example-projects/selenium/build.gradle 1.1-t
- name: Test Spock Example Project
run: >
source scripts/source_files/helper_functions.sh
&& runGradleTestOnGivenProject example-projects/spock/build.gradle 1.1-t
- name: Test Spring-Boot Example Project
run: >
source scripts/source_files/helper_functions.sh
&& runGradleTestOnGivenProject example-projects/spring-boot/build.gradle 1.1-t
- name: Test Maven Example Project
run: >
source scripts/source_files/helper_functions.sh
&& runMavenTestOnGivenProject example-projects/maven/pom.xml 1.1-t
- name: Upload test results html files
continue-on-error: true
if: ${{failure()}}
uses: actions/upload-artifact@v4.4.3
with:
name: test-report-example-projects
path: /home/runner/work/JGiven/JGiven/example-projects/*/build/reports/tests
if-no-files-found: ignore
- name: Test Java 11 Project
run: source scripts/source_files/helper_functions.sh && runMavenTestOnGivenProject example-projects/java11/pom.xml 1.1-t
- name: Test TestNG Example Project
run: source scripts/source_files/helper_functions.sh && runGradleTestOnGivenProject example-projects/testng/build.gradle 1.1-t
- uses: olafurpg/setup-scala@v14
with:
java-version: adopt@1.11
- name: Test Scala Example Project
run: source scripts/source_files/helper_functions.sh && runScalaTest
- name: Upload test results html files
continue-on-error: true
if: ${{failure()}}
uses: actions/upload-artifact@v4.4.3
with:
name: test-report-example-projects
path: /home/runner/work/JGiven/JGiven/example-projects/*/build/reports/tests
if-no-files-found: ignore
validate_publication_poms:
name: Validate the format of the published poms
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: Load the bash script
run: scripts/local_release_with_version.sh
- name: Run validation
run: scripts/validate_poms.sh