mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 01:36:56 +01:00
ci: run BCDB node in background
This commit is contained in:
parent
334a3f4d2d
commit
2f3b2dbca1
65
.github/workflows/ci.yaml
vendored
65
.github/workflows/ci.yaml
vendored
@ -1,65 +0,0 @@
|
|||||||
name: 'JS BigChainDB driver CI'
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths-ignore:
|
|
||||||
- README.md
|
|
||||||
- API.md
|
|
||||||
- docs/*.rst
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
types:
|
|
||||||
- ready_for_review
|
|
||||||
- opened
|
|
||||||
- reopened
|
|
||||||
- synchronize
|
|
||||||
paths-ignore:
|
|
||||||
- README.md
|
|
||||||
- API.md
|
|
||||||
- docs/*.rst
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.event_name == 'release' || github.event_name == 'push' || !github.event.pull_request.draft
|
|
||||||
timeout-minutes: 10
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout the commit
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: 14
|
|
||||||
|
|
||||||
- name: Cache dependencies
|
|
||||||
id: cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-node-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
env:
|
|
||||||
HUSKY_SKIP_INSTALL: 'true'
|
|
||||||
run: npm install
|
|
||||||
|
|
||||||
- name: Lint
|
|
||||||
run: npm run lint
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Build docker
|
|
||||||
run: |
|
|
||||||
echo Building and starting up docker containers
|
|
||||||
docker-compose -f ./docker-compose.yml up
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: npm run test
|
|
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -45,6 +45,11 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
|
|
||||||
|
- name: Run BigChainDB node
|
||||||
|
run: |
|
||||||
|
echo Building and starting up docker containers
|
||||||
|
docker-compose -f ./docker-compose.yml up -d
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
env:
|
env:
|
||||||
HUSKY_SKIP_INSTALL: 'true'
|
HUSKY_SKIP_INSTALL: 'true'
|
||||||
@ -56,10 +61,8 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Build docker
|
# ensure BCDB node is up and running
|
||||||
run: |
|
- run: sleep 10
|
||||||
echo Building and starting up docker containers
|
|
||||||
docker-compose -f ./docker-compose.yml up
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
Loading…
Reference in New Issue
Block a user