Skip to content

chore(deps): update rossjrw/pr-preview-action action to v1.4.8 #139

chore(deps): update rossjrw/pr-preview-action action to v1.4.8

chore(deps): update rossjrw/pr-preview-action action to v1.4.8 #139

Workflow file for this run

---
name: Check
on:
pull_request:
branches:
- master
jobs:
spotless:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
distribution: temurin
java-version: 17
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Check formatting
run: |
./gradlew spotlessCheck
check:
uses: wetransform/gha-workflows/.github/workflows/gradle-library-check.yml@ac5514fee04f1b8ba18483fe8ff82c70fd134505 # v2.5.0
with:
java-version: 17
multi-module: true
skip-scan: true
gradle-tasks: '--continue clean check :allure:allureAggreggateResults' # perform all tasks even if tests of one project fail
upload-artifact-path: allure/build/allure-results
upload-artifact-name: allure-results
secrets:
WETF_ARTIFACTORY_USER: ${{ secrets.WETF_ARTIFACTORY_USER }}
WETF_ARTIFACTORY_PASSWORD: ${{ secrets.WETF_ARTIFACTORY_PASSWORD }}
allure:
# https://allurereport.org/docs/integrations-github/
runs-on: ubuntu-latest
if: ${{ failure() && !startsWith(github.head_ref, 'renovate/') }} # only if tests fail, but not for renovate changes
needs: check
concurrency:
group: allure-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Download artifact from build
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: allure-results
path: allure-results
- name: Load test report history
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- name: Build test report
uses: simple-elf/allure-report-action@58e6590adf6d8f196a0d771bf8a00e6921086a62 # v1.9
with:
gh_pages: gh-pages
allure_history: allure-history
allure_results: allure-results
# needs to be adapted because action adds redirect
report_url: https://${{ github.repository_owner }}.github.io/hale-core/pr-preview/pr-${{ github.event.pull_request.number }}
- name: Deploy preview
uses: rossjrw/pr-preview-action@430e3dfc1de8a8ae77e77d862d25676ef9db55d1 # v1.4.8
with:
source-dir: ./allure-history/