Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.

Add CircleCI building #908

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 2.1

commands:
test-nodejs:
steps:
- run:
name: Versions
command: npm version
- checkout
- restore_cache:
keys:
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-master-{{ .Environment.CIRCLE_JOB }}
- run:
name: Install dependencies
command: npm ci
- run:
name: NPM Audit
command: npm audit --audit-level=moderate
- run:
name: Test
command: npm test
- save_cache:
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
paths:
- ~/.npm/_cacache

jobs:
node-v8:
docker:
- image: circleci/node:8
steps:
- test-nodejs
node-v10:
docker:
- image: circleci/node:10
steps:
- test-nodejs
node-v12:
docker:
- image: circleci/node:12
steps:
- test-nodejs

workflows:
node-multi-build:
jobs:
- node-v8
- node-v10
- node-v12
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![npm package](https://badge.fury.io/js/oidc-client.svg)](https://www.npmjs.com/package/oidc-client)
[![CircleCI](https://circleci.com/gh/IdentityModel/oidc-client-js/tree/dev.svg?style=svg)](https://circleci.com/gh/IdentityModel/oidc-client-js/tree/dev)

# oidc-client

Expand Down