added zephyr integration to the workflow #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |