GitHub Actions Integration Tests (#1466)

* ci: Add Github Actions integration testing against standalone rippled
This commit is contained in:
Nathan Nichols
2021-07-27 10:47:55 -07:00
committed by GitHub
parent d941653477
commit 9adfd404e5
7 changed files with 42 additions and 138 deletions

View File

@@ -10,13 +10,13 @@ on:
branches: [ develop ]
jobs:
build:
unit:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 13.x, 14.x, 16.x]
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
@@ -28,3 +28,30 @@ jobs:
- run: yarn test
- run: yarn lint
- run: yarn build
integration:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
services:
rippled:
image: natenichols/rippled-standalone:latest
ports:
- 6006:6006
options:
--health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn test:integration
env:
HOST: localhost
PORT: ${{ job.services.rippled.ports['6006'] }}