Skip to content

Commit

Permalink
KAN-1 workflow fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alina1906 committed Jul 31, 2024
1 parent 8179c51 commit f127fac
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/github-actions-typescript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,31 @@ name: Run tests

on:
push:
branches:
- main
workflow_dispatch:
inputs:
ALLURE_JOB_RUN_ID:
description: ALLURE_JOB_RUN_ID service parameter. Leave blank.
ALLURE_USERNAME:
description: ALLURE_USERNAME service parameter. Leave blank.

env:
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
ALLURE_JOB_RUN_ID: ${{ github.event.inputs.ALLURE_JOB_RUN_ID }}
ALLURE_ENDPOINT: https://typescript.testops.cloud/
ALLURE_PROJECT_ID: 1
ALLURE_RESULTS: build/allure-results

pull_request:
branches:
- main
jobs:
all-tests:
ts-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Check out the repository
uses: actions/checkout@v4

- name: Dependency installation
run: npm i

- name: Install allurectl
uses: allure-framework/setup-allurectl@v1
- name: run tests
run: npx jest

- name: Build with Gradle
run: allurectl watch -- ./gradlew clean test
- name: submit to Zephyr
env:
ZEPHYR_TOKEN: ${{ secrets.ZEPHYR_TOKEN }}
run: |
curl \
-H "Authorization: Bearer ${ZEPHYR_TOKEN}" \
-F "file=@reports/junit/junit.xml;type=application/xml" \
https://api.zephyrscale.smartbear.com/v2/automations/executions/junit?projectKey="KAN"&autoCreateTestCases=true

0 comments on commit f127fac

Please sign in to comment.