Skip to content

ability to trigger it manually #13

ability to trigger it manually

ability to trigger it manually #13

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI with Xray server/DC
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: generate auxiliary file with env variables for newman
run: |
cat xrayserver.postman_environment.json.template | sed "s|JIRA_BASEURL_VALUE|${{ secrets.JIRASERVER_BASE_URL }}|g" | sed "s|JIRA_USERNAME_VALUE|${{ secrets.JIRASERVER_USERNAME }}|g" | sed "s|JIRA_PASSWORD_VALUE|${{ secrets.JIRASERVER_PASSWORD }}|g" > xrayserver.postman_environment.json
ls -la xrayserver.postman_environment.json
cat xrayserver.postman_environment.json
- name: Run tests using newman
continue-on-error: true
run: npm install && npm test
- name: "Import results to Xray (server/DC)"
uses: mikepenz/[email protected]
with:
username: ${{ secrets.JIRASERVER_USERNAME }}
password: ${{ secrets.JIRASERVER_PASSWORD }}
xrayCloud: "false"
xrayBaseUrl: ${{ secrets.JIRASERVER_BASE_URL }}
testFormat: "junit"
testPaths: "**/junit.xml"
testPlanKey: "${{ secrets.XRAYSERVER_TEST_PLAN_KEY }}"
projectKey: "${{ secrets.JIRASERVER_PROJECT_KEY }}"