Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add pkgjs workflow #167

Merged
merged 11 commits into from
Feb 24, 2022
24 changes: 4 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,10 @@ name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 16, 17]
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
- name: Use Node.js
uses: actions/setup-node@v2.5.0
with:
node-version: ${{ matrix.node-version }}
- name: Restore cached dependencies
uses: actions/cache@v2.1.7
with:
path: node_modules
key: node-modules-${{ hashFiles('package.json') }}
- name: Install dependencies
run: npm install
- name: Run Tests
run: npm run ci
uses: pkgjs/action/.github/workflows/node-test.yaml@main
with:
strategy-fail-fast: true
test-command: npm run ci

automerge:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"typescript": "^4.0.3"
},
"engines": {
"node": ">= 10.12.0"
simoneb marked this conversation as resolved.
Show resolved Hide resolved
"node": "^16 || ^14 || ^12"
},
"tsd": {
"directory": "test"
Expand Down