Skip to content

allure-upload-trigger #21

allure-upload-trigger

allure-upload-trigger #21

Workflow file for this run

name: Iroha2-java upload tests results to Soramitsu TestOps
on:
workflow_dispatch:
inputs:
GITHUB_TESTS_ENDPOINT:
description: "Endpoint for tests"
required: true
default: https://soramitsu.testops.cloud
GITHUB_TESTS_BROWSER:
description: "Browser for tests"
required: true
default: chrome
ALLURE_JOB_RUN_ID:
description: "ALLURE_JOB_RUN_ID service parameter. Leave blank."
required: false
ALLURE_USERNAME:
description: "ALLURE_USERNAME service parameter. Leave blank"
required: false
repository_dispatch:
types: [allure-upload-trigger]
env:
IROHA_IMAGE_TAG: "dev"
ALLURE_RESULTS: "${{ github.workspace }}/modules/client/build/allure-results"
ALLURE_JOB_RUN_ID: ${{ github.event.inputs.ALLURE_JOB_RUN_ID }}
jobs:
java-sdk-tests:
runs-on: [iroha-ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'liberica'
- name: Install and configure allurectl
uses: allure-framework/setup-allurectl@v1
with:
allure-endpoint: https://soramitsu.testops.cloud
allure-token: ${{ secrets.ALLURE_TOKEN }}
allure-project-id: 1
- name: Build with Gradle
run: |
allurectl watch -- ./gradlew clean test --continue
printenv | grep GITHUB_TESTS_
env:
GITHUB_TESTS_ENDPOINT: ${{ github.event.inputs.GITHUB_TESTS_ENDPOINT }}
GITHUB_TESTS_BROWSER: ${{ github.event.inputs.GITHUB_TESTS_BROWSER }}
GITHUB_TESTS_REF_NAME: ${{ github.ref_name }}