mirror of
https://github.com/hanzoai/node-jwks-rsa.git
synced 2026-10-30 14:46:38 +00:00
51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
version: 2.1
|
|
orbs:
|
|
ship: auth0/[email protected]
|
|
codecov: codecov/codecov@3
|
|
|
|
jobs:
|
|
build:
|
|
parameters:
|
|
node-version:
|
|
type: string
|
|
default: "18"
|
|
docker:
|
|
- image: cimg/node:<< parameters.node-version >>
|
|
environment:
|
|
LANG: en_US.UTF-8
|
|
steps:
|
|
- checkout
|
|
|
|
- ship/node-install-packages
|
|
|
|
- run:
|
|
name: Run Linter
|
|
command: npm run lint
|
|
|
|
- run:
|
|
name: Run Tests
|
|
command: npm run test:ci
|
|
|
|
- store_artifacts:
|
|
path: ./coverage/<< parameters.node-version >>/lcov-report
|
|
|
|
- codecov/upload
|
|
|
|
workflows:
|
|
build-and-test:
|
|
jobs:
|
|
- build:
|
|
matrix:
|
|
parameters:
|
|
node-version: ["14.20", "16.18", "18.12"]
|
|
- ship/node-publish:
|
|
requires:
|
|
- build
|
|
context:
|
|
- publish-npm
|
|
- publish-gh
|
|
filters:
|
|
branches:
|
|
only:
|
|
- master
|