Skip to content

Commit

Permalink
Merge pull request #3145 from postmanlabs/feature/v6-drop-node-support
Browse files Browse the repository at this point in the history
Drop support for Node < 16
  • Loading branch information
codenirvana committed Sep 13, 2023
2 parents 8994155 + 7ad221d commit 32ea56a
Show file tree
Hide file tree
Showing 11 changed files with 6,477 additions and 99 deletions.
4 changes: 0 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,6 @@ scripts (`pwd`) is always the repository root.
The script associated with `npm test` will run all tests that ensures that your commit does not break anything in the
repository. As such run `npm test` before you push

### Accessing build log on CI server

Build logs for this project can be accessed [here](https://travis-ci.org/postmanlabs/newman)

### Security

Security concerns are always treated with high priority. Should you come across a security vulnerability, please report
Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: CI

on:
push:
paths-ignore:
- "*.md"
pull_request:
branches: [$default-branch]
schedule:
- cron: "0 12 * * 0"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [16, 18]
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install
run: npm ci

- name: Run tests
run: npm run test

coverage:
name: Coverage
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

- name: Install
run: npm ci

- name: Run unit tests
run: |
npm run test-unit
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F unit
- name: Run integration tests
run: |
npm run test-integration
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F integration
- name: Run CLI tests
run: |
npm run test-cli
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F cli
- name: Run library tests
run: |
npm run test-library
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F library
4 changes: 1 addition & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ Thumbs.db
npm/
test/
examples/
.snyk
codecov.yml
.eslintrc
.nycrc.js
codecov.yml
.travis.yml
.dockerignore
.editorconfig
.jsdoc-config.json
8 changes: 0 additions & 8 deletions .snyk

This file was deleted.

28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
unreleased:
breaking changes:
- GH-3145 Dropped support for Node < v16
chores:
- GH-3145 Migrate to GitHub Actions

5.3.2:
date: 2022-03-03
fixed bugs:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<a href="https://www.postman.com/"><img src="https://assets.getpostman.com/common-share/postman-logo-horizontal-320x132.png" /></a><br />
_Manage all of your organization's APIs in Postman, with the industry's most complete API development environment._

# newman <sub>_the cli companion for postman_</sub> [![Build Status](https://travis-ci.org/postmanlabs/newman.svg?branch=develop)](https://travis-ci.com/postmanlabs/newman) [![codecov](https://codecov.io/gh/postmanlabs/newman/branch/develop/graph/badge.svg)](https://codecov.io/gh/postmanlabs/newman)
# newman <sub>_the cli companion for postman_</sub> [![Build Status](https://github.com/postmanlabs/newman/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/postmanlabs/newman/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/postmanlabs/newman/branch/develop/graph/badge.svg)](https://codecov.io/gh/postmanlabs/newman)

Newman is a command-line collection runner for Postman. It allows you to effortlessly run and test a Postman collection directly from the command-line. It is built with extensibility in mind so that you can easily integrate it with your continuous integration servers and build systems.

Expand Down Expand Up @@ -46,7 +46,7 @@ Newman is a command-line collection runner for Postman. It allows you to effortl

## Getting started

To run Newman, ensure that you have Node.js >= v10. [Install Node.js via package manager](https://nodejs.org/en/download/package-manager/).
To run Newman, ensure that you have Node.js >= v16. [Install Node.js via package manager](https://nodejs.org/en/download/package-manager/).

### Installation
The easiest way to install Newman is using NPM. If you have Node.js installed, it is most likely that you have NPM installed as well.
Expand Down Expand Up @@ -662,6 +662,7 @@ newman.run({
| v3.x | >= v4.x |
| v4.x | >= v6.x |
| v5.x | >= v10.x |
| v6.x | >= v16.x |

The current Node version compatibility can also be seen from the `engines.node` property in [package.json](https://github.com/postmanlabs/newman/blob/develop/package.json)

Expand Down
Loading

0 comments on commit 32ea56a

Please sign in to comment.