forked from Mozartted/ethr-did
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): groom the build scripts and dependencies (uport-project#97)
* fix(ci): simplify caching and use codecov action * fix(build): update build outputs * fix(deps): bump did-resolver & ethr-did-resolver & did-jwt upgrade tests and docs to match new document formats * chore(deps): use ganache instead of ganache-cli * chore(deps): bump devDependencies to latest
- Loading branch information
Showing
14 changed files
with
2,739 additions
and
4,956 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"jest/globals": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint", "jest"], | ||
"rules": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,24 +12,17 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_TOKEN }} | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14.x' | ||
|
||
- 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 | ||
- name: "Setup node with cache" | ||
uses: actions/setup-node@v3 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} | ||
node-version: 14 | ||
cache: 'yarn' | ||
|
||
- run: yarn install --frozen-lockfile | ||
- run: yarn build | ||
|
||
- name: setup git coordinates | ||
- name: "Setup git coordinates" | ||
run: | | ||
git config user.name uport-automation-bot | ||
git config user.email [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
name: Build and Test NODE | ||
on: [pull_request, workflow_dispatch] | ||
on: [pull_request, workflow_dispatch, push] | ||
jobs: | ||
build-test: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14.x' | ||
|
||
- 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 | ||
- name: "Setup node with cache" | ||
uses: actions/setup-node@v3 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} | ||
node-version: 14 | ||
cache: 'yarn' | ||
|
||
- run: yarn install --frozen-lockfile | ||
- run: yarn run build | ||
- run: yarn run lint | ||
- run: yarn run test:ci | ||
|
||
- name: "Upload coverage reports" | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }], "@babel/preset-typescript"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,29 +2,36 @@ | |
"name": "ethr-did", | ||
"version": "2.2.2", | ||
"description": "Create, manage and use did:ethr identifiers", | ||
"type": "module", | ||
"source": "src/index.ts", | ||
"main": "lib/index.js", | ||
"module": "lib/index.module.js", | ||
"unpkg": "lib/index.umd.js", | ||
"types": "lib/index.d.ts", | ||
"umd:main": "lib/index.umd.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:uport-project/ethr-did.git" | ||
}, | ||
"main": "./lib/index.cjs", | ||
"module": "./lib/index.module.js", | ||
"unpkg": "./lib/index.umd.js", | ||
"types": "./lib/index.d.ts", | ||
"umd:main": "./lib/index.umd.js", | ||
"files": [ | ||
"lib", | ||
"src", | ||
"LICENSE" | ||
], | ||
"exports": { | ||
".": { | ||
"require": "./lib/index.cjs", | ||
"import": "./lib/index.module.js" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:uport-project/ethr-did.git" | ||
}, | ||
"author": "Pelle Braendgaard", | ||
"contributors": [ | ||
"Mircea Nistor <[email protected]>" | ||
], | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"test": "jest", | ||
"test:ci": "jest --coverage && codecov", | ||
"test:ci": "jest --coverage", | ||
"build": "microbundle --compress=false", | ||
"format": "prettier --write \"src/**/*.[jt]s\"", | ||
"lint": "eslint --ignore-pattern \"src/**/*.test.[jt]s\" \"src/**/*.[jt]s\"", | ||
|
@@ -45,40 +52,39 @@ | |
] | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.16.7", | ||
"@babel/preset-env": "7.16.7", | ||
"@babel/preset-typescript": "7.16.7", | ||
"@ethersproject/contracts": "5.6.0", | ||
"@babel/core": "7.18.2", | ||
"@babel/preset-env": "7.17.12", | ||
"@babel/preset-typescript": "7.17.12", | ||
"@ethersproject/contracts": "5.6.2", | ||
"@semantic-release/changelog": "6.0.1", | ||
"@semantic-release/git": "10.0.1", | ||
"@types/jest": "27.4.0", | ||
"@typescript-eslint/eslint-plugin": "5.9.0", | ||
"@typescript-eslint/parser": "5.9.0", | ||
"codecov": "3.8.2", | ||
"eslint": "8.6.0", | ||
"eslint-config-prettier": "8.3.0", | ||
"eslint-plugin-jest": "26.1.0", | ||
"@types/jest": "28.1.1", | ||
"@typescript-eslint/eslint-plugin": "5.27.0", | ||
"@typescript-eslint/parser": "5.27.0", | ||
"eslint": "8.17.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-jest": "26.5.3", | ||
"eslint-plugin-prettier": "4.0.0", | ||
"ethr-did-registry": "0.0.3", | ||
"ganache-cli": "6.12.2", | ||
"ganache": "7.2.0", | ||
"jest": "28.1.0", | ||
"microbundle": "0.14.2", | ||
"prettier": "2.5.1", | ||
"microbundle": "0.15.0", | ||
"prettier": "2.6.2", | ||
"semantic-release": "19.0.2", | ||
"typescript": "4.5.4" | ||
"typescript": "4.7.3" | ||
}, | ||
"dependencies": { | ||
"@ethersproject/abstract-signer": "^5.6.0", | ||
"@ethersproject/base64": "^5.6.0", | ||
"@ethersproject/basex": "^5.6.0", | ||
"@ethersproject/abstract-signer": "^5.6.2", | ||
"@ethersproject/base64": "^5.6.1", | ||
"@ethersproject/basex": "^5.6.1", | ||
"@ethersproject/bytes": "^5.6.1", | ||
"@ethersproject/providers": "^5.6.2", | ||
"@ethersproject/signing-key": "^5.6.0", | ||
"@ethersproject/strings": "^5.6.0", | ||
"@ethersproject/transactions": "^5.6.0", | ||
"@ethersproject/wallet": "^5.5.0", | ||
"did-jwt": "^6.0.0", | ||
"did-resolver": "^3.2.0", | ||
"ethr-did-resolver": "^5.0.4" | ||
"@ethersproject/providers": "^5.6.8", | ||
"@ethersproject/signing-key": "^5.6.2", | ||
"@ethersproject/strings": "^5.6.1", | ||
"@ethersproject/transactions": "^5.6.2", | ||
"@ethersproject/wallet": "^5.6.2", | ||
"did-jwt": "^6.1.2", | ||
"did-resolver": "^3.2.2", | ||
"ethr-did-resolver": "^6.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.