Skip to content

Regression

Regression #513

Workflow file for this run

name: Regression
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 2 * * 2,4,6'
workflow_dispatch:
jobs:
api-suite:
runs-on: ubuntu-22.04
steps:
- name: Checkout ${{ github.repository }} repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- name: Health Check
uses: jtalk/url-health-check-action@v4
with:
url: 'https://restful-booker.herokuapp.com/ping'
follow-redirect: false
max-attempts: 3
retry-delay: 5s
- name: Execute tests
env:
RESTFUL_BOOKER_USERNAME: ${{ secrets.RESTFUL_BOOKER_USERNAME }}
RESTFUL_BOOKER_PASSWORD: ${{ secrets.RESTFUL_BOOKER_PASSWORD }}
run: ./gradlew clean test
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}