Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
name: CI (Jira cloud example with GH action, report results to Test Plan - demo) on: workflow_dispatch: inputs: test_plan_key: description: 'Test Plan issue key' required: false default: '' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Set up Java uses: actions/setup-java@v1 with: java-version: '1.8' - name: Cache Maven packages uses: actions/cache@v2 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Build with Maven run: mvn clean compile test --file pom.xml - name: Submit results to Xray uses: mikepenz/xray-action@v0action@v2.94.45 with: username: ${{ secrets.client_id }} password: ${{ secrets.client_secret }} xrayCloud: true testFormat: "junit" testPaths: "**/surefire-reports/*.xml" projectKey: "CALC" testPlanKey: ${{ github.event.inputs.test_plan_key }} |
...