From 1d1c27c0e5a16afb1136d5b3e32f2b64f23b7fbc Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Sat, 8 Jan 2022 13:58:53 -0800 Subject: [PATCH] chore: switch to GitHub actions (#23) --- .gitattributes | 1 + .github/ISSUE_TEMPLATE.md | 13 +++++++++++++ .github/SECURITY.md | 26 ++++++++++++++++++++++++++ .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 19 ------------------- README.md | 2 +- appveyor.yml | 29 ----------------------------- 7 files changed, 73 insertions(+), 49 deletions(-) create mode 100644 .gitattributes create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/SECURITY.md create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fcadb2c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=lf diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..1b554eb --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,13 @@ +### Node version (or tell us if you're using electron or some other framework): + +### ShellJS version (the most recent version/GitHub branch you see the bug on): + +### Operating system: + +### Description of the bug: + +### Example ShellJS command to reproduce the error: + +```javascript + +``` diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000..ceceb60 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,26 @@ +# Security Policy + +Thank you for reaching out about security! Please note that this project is +maintained on a best-effort basis, however I still intend to prioritize +reviewing and addressing security issues. + +## Supported Versions + +I generally only support the latest release (see +https://www.npmjs.com/package/shelljs-exec-proxy). My goal is to release +security fixes as patch releases on top of whatever was most recently shipped. + +## Reporting a Vulnerability + +Please report security vulnerabilities to ntfschr@gmail.com. I should respond +within a few days. Although it's not strictly required, it helps me out if you +can include any proof of concept exploit code, suggested fix, etc. + +**Please do not publicly disclose the suspected vulnerability** until I have a +chance to review your report. I'd like a chance to patch the code before the +issue is known to the public. + +Please **only** use this email for security issues. It's also OK to use the +email if you're legitimately unsure if this is a security issue (better safe +than sorry). But for all other non-security issues, please use the GitHub issue +tracker. diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4103115 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + node-version: + - 6 + - 8 + - 10 + - 12 + - 14 + - 16 + os: + - ubuntu-latest + - macos-latest + - windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run test + - uses: codecov/codecov-action@v2 + with: + fail_ci_if_error: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 13e98b7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: node_js -sudo: false -node_js: - - 6 - - 8 - - 10 - - 12 - - 14 - -os: - - linux - - osx -script: - - npm test -after_success: - - npm run codecov -- -f coverage/lcov.info - -notifications: - email: false diff --git a/README.md b/README.md index 997446c..fad5358 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ShellJS Exec Proxy -[![Travis](https://img.shields.io/travis/nfischer/shelljs-exec-proxy/master.svg?style=flat-square)](https://travis-ci.org/nfischer/shelljs-exec-proxy) +[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fnfischer%2Fshelljs-exec-proxy%2Fbadge%3Fref%3Dmaster&style=flat-square)](https://actions-badge.atrox.dev/nfischer/shelljs-exec-proxy/goto?ref=master) [![Codecov](https://img.shields.io/codecov/c/github/nfischer/shelljs-exec-proxy.svg?style=flat-square)](https://codecov.io/gh/nfischer/shelljs-exec-proxy) [![npm](https://img.shields.io/npm/v/shelljs-exec-proxy.svg?style=flat-square)](https://www.npmjs.com/package/shelljs-exec-proxy) [![npm downloads](https://img.shields.io/npm/dm/shelljs-exec-proxy.svg?style=flat-square)](https://www.npmjs.com/package/shelljs-exec-proxy) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 59b39c5..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,29 +0,0 @@ -environment: - matrix: - - nodejs_version: '14' - - nodejs_version: '12' - - nodejs_version: '10' - - nodejs_version: '8' - - nodejs_version: '6' - -version: '{build}' - -# Install scripts. (runs after repo cloning) -install: - - ps: Install-Product node $env:nodejs_version - - set PATH=%APPDATA%\npm;%PATH% - - node --version - - npm --version - - npm install - -matrix: - fast_finish: false - -# No need for MSBuild on this project -build: off - -test_script: - - npm test - -on_success: - - npm run codecov -- -f coverage/lcov.info