diff --git a/.github/workflows/e2etests.yml b/.github/workflows/e2etests.yml index 9c5f555..09a3def 100644 --- a/.github/workflows/e2etests.yml +++ b/.github/workflows/e2etests.yml @@ -1,13 +1,9 @@ -name: "Build & Test" +name: "Build, Lint & Test" -on: [push] - -# on: -# # pull_request: -# # branches: -# # - "master" -# push: -# branches: +on: + push: + pull_request: + workflow_dispatch: jobs: build: @@ -15,20 +11,27 @@ jobs: runs-on: ubuntu-latest steps: - - name: "Checkout source code" - uses: actions/checkout@v3 + - name: 'Checkout source code' + uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version-file: '.nvmrc' + registry-url: 'https://registry.npmjs.org/' cache: 'npm' - name: Install run: npm ci --ignore-scripts - - name: Build + - name: Clean + run: npm run clean + + - name: Check Build run: npm run build + - name: Check Lint + run: npm run lint + - name: Test run: npm run test env: diff --git a/package.json b/package.json index d5d362e..63b84ca 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "build:clean": "npm run clean && npm run build", "build:watch": "npm run clean && tsc --watch", "pack": "webpack --config webpack/webpack.config.js", + "lint": "eslint src", "prepublish": "npm run build:clean", "betapublish": "npm publish --tag beta" }, diff --git a/src/types/request/v1/spotV1.ts b/src/types/request/v1/spotV1.ts index f3f4b85..fbecdcc 100644 --- a/src/types/request/v1/spotV1.ts +++ b/src/types/request/v1/spotV1.ts @@ -20,7 +20,7 @@ export type SpotKlineInterval = | '1Dutc' | '3Dutc' | '1Wutc' - | '1Mutc'; + | "1Mutc"; export interface NewWalletTransfer { fromType: WalletType;