Skip to content

Commit

Permalink
Merge de5174e into 8a9a861
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Jun 15, 2022
2 parents 8a9a861 + de5174e commit b3c3ea2
Show file tree
Hide file tree
Showing 63 changed files with 1,011 additions and 1,159 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ jobs:
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install SoftHSM
run: |
brew install softhsm
softhsm2-util --init-token --so-pin "12345" --pin "12345" --slot 0 --label "My slot 0"
- name: Install NSS
run: brew install nss

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v3
id: yarn-cache
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn
Expand All @@ -46,5 +46,8 @@ jobs:

- name: Coveralls
uses: coverallsapp/github-action@master
env:
NODE_COVERALLS_DEBUG: 1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: ./
6 changes: 6 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require:
- ts-node/register
extension:
- ts
spec":
- test/**/*.ts
13 changes: 13 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"reporter": [
"lcov",
"text-summary"
],
"include": [
"src/**/*.ts"
],
"extension": [
".ts",
".tsx"
]
}
250 changes: 0 additions & 250 deletions index.d.ts

This file was deleted.

0 comments on commit b3c3ea2

Please sign in to comment.