From ff463138f015261e78a8f1e9fa7a1fbb363fa836 Mon Sep 17 00:00:00 2001 From: ayman Date: Fri, 19 Jul 2024 05:00:55 +0530 Subject: [PATCH] feat: add ci for testing and linting --- .github/workflows/main_ci.yml | 29 + .gitignore | 1 - index.js | 22 +- package-lock.json | 8674 +++++++++++++++++++++++++++++++++ test/index.js | 10 +- 5 files changed, 8719 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/main_ci.yml create mode 100644 package-lock.json diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml new file mode 100644 index 0000000..0aa4ab9 --- /dev/null +++ b/.github/workflows/main_ci.yml @@ -0,0 +1,29 @@ +name: Run Tests + +on: + push: + branches: + - master + pull_request: + +jobs: + unit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm run test + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm run standard diff --git a/.gitignore b/.gitignore index 805eb31..c9106a7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules .nyc_output -package-lock.json diff --git a/index.js b/index.js index 4821628..19b5a45 100644 --- a/index.js +++ b/index.js @@ -1,19 +1,19 @@ // https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki // bitcoin:
[?amount=][?label=