Skip to content

Start Streamr Docker stack as a part of your GitHub Actions workflow.

License

Notifications You must be signed in to change notification settings

streamr-dev/streamr-docker-dev-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streamr

streamr-docker-dev GitHub Action

Test

Description

streamr-docker-dev-action is a custom GitHub Action that:

  • Clones streamr-docker-dev command line tool
  • Sets command streamr-docker-dev to $PATH and makes it available to next steps
  • Starts Streamr Docker stack

Required input arguments

None.

Optional input arguments

Currently the following services are started by default:

  • mysql
  • cassandra
  • parity-node0
  • parity-sidechain-node0
  • broker-node-storage-1
  • nginx
  • platform

You can customise services that are required by your use case with services-to-start input parameter. For example:

on: [push]

jobs:
  test:
    runs-on: ubuntu-latest
    name: Use streamr-docker-dev-action to start a few services
    steps:
    - uses: actions/checkout@v2
    - id: start-docker-services
      uses: streamr-dev/streamr-docker-dev-action@v1
      with:
        services-to-start: 'redis mysql core-api'

branch input parameter for using a different branch. Branch defaults to main branch.

on: [push]

jobs:
  test:
	runs-on: ubuntu-latest
	name: Use streamr-docker-dev-action to start a few services
	steps:
	- uses: actions/checkout@v2
	- id: start-docker-services
	  uses: streamr-dev/streamr-docker-dev-action@v1
	  with:
	    branch: my-test-branch

Required output arguments

None.

Optional output arguments

None.

Secrets

None.

Environment variables

None.

Example

on: [push]

jobs:
  example:
    runs-on: ubuntu-latest
    name: Using streamr-docker-dev-action
    steps:
    - uses: actions/checkout@v2
    - uses: streamr-dev/streamr-docker-dev-action@v1
    - run: npm ci && npm test
      shell: bash