Merge pull request #365 from getsafle/SBE-702-integrate-the-following… #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | |
name: Feature/Bugfix branch | |
on: | |
# workflow_call: | |
push: | |
branches: | |
- feature-* | |
- bugfix-* | |
- dev | |
- test | |
pull_request: | |
branches: | |
- feature-* | |
- bugfix-* | |
- dev | |
- test | |
paths: | |
- package.json | |
- CHANGELOG | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
GITHUB_ACTIONS: true | |
OLD_MNEMONIC: "fun rough treat scan glimpse region century purpose expire video remind second" | |
MNEMONIC: "vintage reflect pass input polar enlist giggle judge render position also document" | |
PIN: "696969" | |
PRIVATE_KEY_EVM: "0x7a9633b8103fec11c9e855a6b6c8c072e9af311a69b92ab0ad8186b1fb57371f" | |
PRIVATE_KEY_BTC: "KzQfcdjDRUwpVmKKev6k2aAeJFJ359Ht9Umxdg77MTzf2E3bzGsC" | |
EVM_ADDRESS_1: "0x6bbc122fa843f3ed30d23f8cdd9a430d1f898d07" | |
EVM_ADDRESS_2: "0xbae949ddb4d8ac763c12f206db842b9b2d49a464" | |
BITCOIN_ADDRESS_1: "bc1qugw5q5yrzw86wnw3lgldm8en0c736k4hvceuzl" | |
BITCOIN_ADDRESS_2: "bc1qta5f6q32cphxt5rck3kuspukac7keqvxyuk4cl" | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v2 | |
- name: Setting up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.x | |
- name: Installing dependencies | |
run: npm ci | |
- name: Run tests | |
run: | | |
npm run test | |
npx jest --coverage | tee ./coverage.txt && exit ${PIPESTATUS[0]} | |
- name: Jest Coverage Comment | |
uses: MishaKav/jest-coverage-comment@main | |
with: | |
coverage-path: ./coverage.txt |