|
| 1 | +name: Run Tests |
| 2 | + |
| 3 | +on: [push] |
| 4 | + |
| 5 | +jobs: |
| 6 | + unit: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + steps: |
| 9 | + - uses: actions/checkout@v2 |
| 10 | + - uses: actions/setup-node@v1 |
| 11 | + with: |
| 12 | + node-version: 12 |
| 13 | + registry-url: https://registry.npmjs.org/ |
| 14 | + - run: npm ci |
| 15 | + - run: npm run unit |
| 16 | + coverage: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + - uses: actions/setup-node@v1 |
| 21 | + with: |
| 22 | + node-version: 12 |
| 23 | + registry-url: https://registry.npmjs.org/ |
| 24 | + - run: npm ci |
| 25 | + - run: npm run coverage |
| 26 | + integration: |
| 27 | + runs-on: ubuntu-latest |
| 28 | + services: |
| 29 | + regtest: |
| 30 | + image: junderw/bitcoinjs-regtest-server@sha256:a46ec1a651ca5b1a5408f2b2526ea5f435421dd2bc2f28fae3bc33e1fd614552 |
| 31 | + ports: |
| 32 | + - 8080:8080 |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v2 |
| 35 | + - uses: actions/setup-node@v1 |
| 36 | + with: |
| 37 | + node-version: 12 |
| 38 | + registry-url: https://registry.npmjs.org/ |
| 39 | + - run: npm ci |
| 40 | + - run: APIURL=http://127.0.0.1:8080/1 npm run integration |
| 41 | + format: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v2 |
| 45 | + - uses: actions/setup-node@v1 |
| 46 | + with: |
| 47 | + node-version: 12 |
| 48 | + registry-url: https://registry.npmjs.org/ |
| 49 | + - run: npm ci |
| 50 | + - run: npm run format:ci |
| 51 | + gitdiff: |
| 52 | + runs-on: ubuntu-latest |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v2 |
| 55 | + - uses: actions/setup-node@v1 |
| 56 | + with: |
| 57 | + node-version: 12 |
| 58 | + registry-url: https://registry.npmjs.org/ |
| 59 | + - run: npm ci |
| 60 | + - run: npm run gitdiff:ci |
| 61 | + lint: |
| 62 | + runs-on: ubuntu-latest |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v2 |
| 65 | + - uses: actions/setup-node@v1 |
| 66 | + with: |
| 67 | + node-version: 12 |
| 68 | + registry-url: https://registry.npmjs.org/ |
| 69 | + - run: npm ci |
| 70 | + - run: npm run lint |
| 71 | + lint-tests: |
| 72 | + runs-on: ubuntu-latest |
| 73 | + steps: |
| 74 | + - uses: actions/checkout@v2 |
| 75 | + - uses: actions/setup-node@v1 |
| 76 | + with: |
| 77 | + node-version: 12 |
| 78 | + registry-url: https://registry.npmjs.org/ |
| 79 | + - run: npm ci |
| 80 | + - run: npm run lint:tests |
0 commit comments