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=