Skip to content

test modified

test modified #6

name: Run tests
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main
jobs:
ts-tests:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Dependency installation
run: npm i
- name: run tests
run: npx jest
- 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