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

fix(ci): groom the build scripts and dependencies #230

Merged
merged 4 commits into from
Jun 6, 2022
Merged
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
22 changes: 8 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,26 @@ jobs:
build-test-publish:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v2
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@v2
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

- name: setup git coordinates
- name: "Setup git coordinates"
run: |
git config user.name uport-automation-bot
git config user.email [email protected]

- name: Run semantic-release
- name: "Run semantic-release"
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@ jobs:
build-test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2
- name: "Setup node with cache"
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@v2
id: yarn-cache
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
5 changes: 0 additions & 5 deletions .npmignore

This file was deleted.

2 changes: 0 additions & 2 deletions codecov.yml

This file was deleted.

43 changes: 0 additions & 43 deletions issue-template.md

This file was deleted.

38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"files": [
"lib",
"dist",
"src"
"src",
"LICENSE"
],
"exports": {
".": {
Expand All @@ -22,15 +23,14 @@
},
"scripts": {
"test": "jest",
"test:ci": "jest --coverage && codecov",
"test:ci": "jest --coverage",
"build:js": "microbundle --compress=false",
"build:browser": "webpack --config webpack.config.cjs",
"build": "yarn build:js && yarn test && yarn build:browser",
"build": "yarn build:js && yarn build:browser",
"build:docs": "echo 'PLEASE UPDATE REFERENCE DOCS MANUALLY'",
"format": "prettier --write \"src/**/*.ts\"",
"lint": "eslint --ignore-pattern \"src/**/*.test.[jt]s\" \"src/**/*.[jt]s\"",
"prepublishOnly": "yarn test:ci && yarn format && yarn lint",
"prepare": "yarn build",
"release": "semantic-release --debug"
},
"author": "Pelle Braendgaard",
Expand Down Expand Up @@ -58,30 +58,30 @@
]
},
"devDependencies": {
"@babel/core": "7.17.8",
"@babel/preset-env": "7.16.11",
"@babel/preset-typescript": "7.16.7",
"@babel/core": "7.18.2",
"@babel/preset-env": "7.17.12",
"@babel/preset-typescript": "7.17.12",
"@semantic-release/changelog": "6.0.1",
"@semantic-release/git": "10.0.1",
"@types/elliptic": "6.4.14",
"@types/jest": "27.4.1",
"@typescript-eslint/eslint-plugin": "5.16.0",
"@typescript-eslint/parser": "5.16.0",
"@types/jest": "28.1.1",
"@typescript-eslint/eslint-plugin": "5.27.0",
"@typescript-eslint/parser": "5.27.0",
"codecov": "3.8.3",
"eslint": "8.12.0",
"eslint": "8.17.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jest": "26.1.3",
"eslint-plugin-jest": "26.5.3",
"eslint-plugin-prettier": "4.0.0",
"jest": "28.1.0",
"jsontokens": "3.0.0",
"microbundle": "0.14.2",
"jsontokens": "3.1.1",
"microbundle": "0.15.0",
"mockdate": "3.0.5",
"prettier": "2.6.1",
"prettier": "2.6.2",
"regenerator-runtime": "0.13.9",
"semantic-release": "19.0.2",
"tweetnacl": "1.0.3",
"typescript": "4.6.3",
"webpack": "5.70.0",
"typescript": "4.7.3",
"webpack": "5.73.0",
"webpack-cli": "4.9.2"
},
"dependencies": {
Expand All @@ -92,10 +92,10 @@
"@stablelib/xchacha20poly1305": "^1.0.1",
"bech32": "^2.0.0",
"canonicalize": "^1.0.8",
"did-resolver": "^3.1.5",
"did-resolver": "^3.2.2",
"elliptic": "^6.5.4",
"js-sha3": "^0.8.0",
"multiformats": "^9.6.4",
"multiformats": "^9.6.5",
"uint8arrays": "^3.0.0"
},
"eslintIgnore": [
Expand Down
4 changes: 2 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"devDependencies"
],
"groupName": "devDeps",
"schedule": [
"before 5am on Monday"
"extends": [
"schedule:earlyMondays"
]
}
]
Expand Down
Loading