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
33 changes: 4 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,10 @@ name: CI
on: [push, pull_request]
jobs:
build:
env:
BENCHMARK_ITERATIONS: 100
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.1
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 test:ci
- name: Run benchmarks
if: ${{ matrix.node-version > 12 }}
run: |
npm run benchmark:sign
npm run benchmark:decode
npm run benchmark:verify
npm run benchmark:auth0
uses: pkgjs/action/.github/workflows/node-test.yaml@v0.1.1
with:
strategy-fail-fast: true
test-command: npm run test: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