-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor src/newman-parallel.js, add github actions workflows
- Loading branch information
1 parent
61f54ac
commit 3d24ec1
Showing
15 changed files
with
1,164 additions
and
58 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "\U0001F41E Report a problem" | ||
description: "Report a problem with newman-parallel" | ||
title: "Bug: (fill in)" | ||
labels: | ||
- bug | ||
- "repro:needed" | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Environment | ||
description: | | ||
Please provide the following information: | ||
value: | | ||
Node version: | ||
npm version: | ||
Operating System: | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: What did you do? | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: What did you expect to happen? | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: What actually happened? | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Link to Minimal Reproducible Example | ||
description: "Link to a GitHub repo with a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be auto-closed." | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Participation | ||
options: | ||
- label: I am willing to submit a pull request for this issue. | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional comments | ||
description: Is there anything else you'd like to mention? |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "\U0001F680 Request a change" | ||
description: "Request a new feature or change to an existing feature" | ||
title: "Change Request: (fill in)" | ||
labels: | ||
- enhancement | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: What problem do you want to solve? | ||
description: | | ||
Please explain your use case in as much detail as possible without referring to a specific solution. | ||
placeholder: | | ||
newman-parallel currently... | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: What do you think is the correct solution? | ||
description: | | ||
Please explain how you'd like to change newman-parallel to address the problem. | ||
placeholder: | | ||
I'd like newman-parallel to... | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Participation | ||
options: | ||
- label: I am willing to submit a pull request for this change. | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional comments | ||
description: Is there anything else you'd like to mention? |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: 🗣 Ask a Question, Discuss | ||
url: https://medium.com/@lutchenkovalentin/run-multiple-postman-api-collections-with-newman-in-parallel-with-automated-html-report-generation-435aa92a1985 | ||
about: Get help using newman-parallel |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "\U0001F4DD Docs" | ||
description: "Request an improvement to documentation" | ||
title: "Docs: (fill in)" | ||
labels: | ||
- documentation | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Docs page(s) | ||
description: | | ||
What page(s) are you suggesting be changed or created? | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: What documentation issue do you want to solve? | ||
description: | | ||
Please explain your issue in as much detail as possible. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: What do you think is the correct solution? | ||
description: | | ||
Please explain how you'd like to change the ESLint docs to address the problem. | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Participation | ||
options: | ||
- label: I am willing to submit a pull request for this change. | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional comments | ||
description: Is there anything else you'd like to mention? |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- | ||
STOP!!! Before submitting a pull request that changes any source code, please open an issue explaining what you'd like to change first. Code changes are NOT accepted without an open issue. | ||
If you are only making documentation changes, you are welcome to continue without an issue. | ||
--> | ||
|
||
## What is the purpose of this pull request? | ||
|
||
## What changes did you make? (Give an overview) | ||
|
||
<!-- | ||
The following is required for all code-related changes: | ||
- updated documentation | ||
- updated tests | ||
--> | ||
|
||
## What issue(s) does this PR address? | ||
|
||
<!-- | ||
Example: | ||
fixes #1234 | ||
refs #567 | ||
--> | ||
|
||
## Is there anything you'd like reviewers to focus on? |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [windows-latest, macOS-latest, ubuntu-latest] | ||
node-version: [20.x] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: npm install, and test | ||
run: | | ||
npm install | ||
npm test | ||
env: | ||
CI: true | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: allure-report | ||
path: allure-report | ||
retention-days: 30 | ||
- name: Deploy report to Github Pages | ||
if: always() | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: allure-report |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
permissions: | ||
contents: write | ||
pull-requests: read | ||
jobs: | ||
release-on-push: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: rymndhng/release-on-push-action@master | ||
with: | ||
bump_version_scheme: patch | ||
use_github_release_notes: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Publish Package to npmjs | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
release: | ||
types: [published] | ||
jobs: | ||
build: | ||
name: Publish to NPM registry | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Setup .npmrc file to publish to npm | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
#!/usr/bin/env node | ||
|
||
const NewmanRunner = require('./src/newman-parallel.js') | ||
|
||
if (process.argv.length <= 2) { | ||
console.log("\x1b[31mPlease provide path to the collections and environment folders\nEx: './collections ./environments'\x1b[0m") | ||
} else { | ||
var args = process.argv.slice(2) | ||
NewmanRunner.runCollections(args) | ||
} | ||
const args = process.argv.slice(2) | ||
NewmanRunner.runCollections(args) |
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
Oops, something went wrong.