Skip to content

Commit

Permalink
Merge pull request #287 from plopjs/stdio-tests
Browse files Browse the repository at this point in the history
chore: added initial stdin and stdout interactivity tests
  • Loading branch information
crutchcorn committed Nov 23, 2021
2 parents a2dc85d + 6e6e73c commit 77f42ee
Show file tree
Hide file tree
Showing 36 changed files with 5,543 additions and 3,344 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,42 @@
name: test

on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
env:
CI: true
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node: [ 12, 14, 16 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: '14'

# From: https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm ci

- name: Test
run: npm test
11 changes: 11 additions & 0 deletions jest.config.js
@@ -0,0 +1,11 @@
module.exports = {
coverageThreshold: {
global: {
branches: 40,
functions: 50,
lines: 50,
statements: 50,
},
},
projects: [require.resolve("./tests/config/jest.config.js")],
};

0 comments on commit 77f42ee

Please sign in to comment.