Skip to content

Commit

Permalink
fix release ymls and update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Valiantsin2021 committed Feb 9, 2024
1 parent 9f48809 commit 7eb00fb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 28 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
on:
# https://docs.github.com/en/actions

name: "Release"

on: # yamllint disable-line rule:truthy
push:
branches:
- main
permissions:
contents: write
pull-requests: read
tags:
- "v*"

jobs:
release-on-push:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: "Release"

runs-on: "ubuntu-latest"

steps:
- uses: rymndhng/release-on-push-action@master
- name: "Create release"
uses: "ergebnis/.github/actions/github/release/create@1.8.0"
with:
bump_version_scheme: patch
use_github_release_notes: true
github-token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 0 additions & 2 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Publish Package to npmjs
on:
push:
branches:
- main
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
Expand Down
16 changes: 3 additions & 13 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ newman-parallel [options]

- path: (Required) Path to the folder containing Postman environments.

- name: (Optional) Name of the collection/product to filter the collections.
- name: (Required if no ALL arg provided or no env variables set) Name of the collection/product to filter the collections.

- name: (Optional) Name of the environment to use.

- ALL: (Optional) to run all the collections from the forlder
- ALL: (Required if no C=<name> argument provided or no env variables set) to run all the collections from the forlder

### Environment variables

Expand Down Expand Up @@ -82,19 +82,9 @@ newman-parallel /path/to/collections /path/to/environments ALL E=MyEnvironment
### Notes

If no collection/product name and ALL arg provided, the script runs all collections in the specified folder.
If no environment name is provided, the script does not use any environment.
If you want to generate allure report you have to have installed as devDependencies the allure-commandline and allure-patch

```bash
npm i -D allure-commandline allure-patch
```

and after that you can use the command
If no environment name is provided, the script does not use any environment.

```bash
newman-parallel /path/to/collections /path/to/environments ALL && npx allure generate --clean && npx allure-patch ./allure-report
# it will generate the allure html report as a single page app
```

### Contributing

Expand Down

0 comments on commit 7eb00fb

Please sign in to comment.