Skip to content

Commit

Permalink
fix: add engines / ci (#11)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: this introduces `engines` support and and a testing
matrix for node12 LTS and above.
  • Loading branch information
wraithgar committed Oct 5, 2021
1 parent 39203ac commit 4012739
Show file tree
Hide file tree
Showing 3 changed files with 661 additions and 556 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,52 @@
name: CI

on:
pull_request:
push:
branches:
- main
- latest

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: npm
- run: npm i --prefer-online -g npm@latest
- run: npm ci
- run: npm run lint

test:
strategy:
fail-fast: false
matrix:
node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.x]
platform:
- os: ubuntu-latest
shell: bash
- os: macos-latest
shell: bash
- os: windows-latest
shell: bash
- os: windows-latest
shell: cmd
- os: windows-latest
shell: powershell
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm i --prefer-online -g npm@latest
- run: npm ci
- run: npm test --ignore-scripts
- run: npm ls -a

0 comments on commit 4012739

Please sign in to comment.