Skip to content

Commit 404510c

Browse files
Merge pull request #32 from Web3Auth/feat/node-18
Feat/node 18
2 parents fcd26fa + bc2a264 commit 404510c

26 files changed

+14832
-18702
lines changed

.eslintrc.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
{
22
"root": true,
33
"extends": ["@toruslabs/eslint-config-typescript"],
4-
"plugins": ["jest"],
54
"parser": "@typescript-eslint/parser",
65
"ignorePatterns": "*.config.js",
76
"env": {
8-
"jest": true,
9-
"mocha": false
7+
"mocha": true
108
},
119
"parserOptions": {
1210
"sourceType": "module",
1311
"ecmaVersion": 11,
1412
"project": "./tsconfig.json"
1513
},
1614
"rules": {
17-
"@typescript-eslint/no-throw-literal": "error",
18-
"no-console": "off"
1915
}
2016
}

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build & Release
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
node: ["18.x"]
10+
os: [ubuntu-latest]
11+
12+
runs-on: ${{ matrix.os }}
13+
14+
steps:
15+
- name: Check out Git repository
16+
uses: actions/checkout@v3
17+
18+
- name: Use Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node }}
22+
cache: "npm"
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Run Build
28+
run: npm run build
29+
30+
- name: Run tests
31+
run: npm run test

.mocharc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"require": ["./test/setup.mjs"],
3+
"spec": "./test/client.spec.ts",
4+
"extension": ["js", "ts"],
5+
"timeout": 0,
6+
"exit": true
7+
}

0 commit comments

Comments
 (0)