|
@@ -1,13 +1,12 @@
|
|
|
-name: run-network-tests
|
|
|
+name: run-network-tests-pull-request
|
|
|
on:
|
|
|
pull_request:
|
|
|
types: [labeled, synchronize]
|
|
|
- workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
|
run_network_tests:
|
|
|
- name: Network Integration Tests
|
|
|
- if: contains(github.event.pull_request.labels.*.name, 'run-network-tests') || github.event.action == null
|
|
|
+ name: Network Integration Tests (pull request)
|
|
|
+ if: contains(github.event.pull_request.labels.*.name, 'run-network-tests')
|
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
@@ -29,11 +28,8 @@ jobs:
|
|
|
run: yarn install --frozen-lockfile
|
|
|
- name: Ensure tests are runnable
|
|
|
run: yarn workspace network-tests build
|
|
|
- - name: Maybe build joystream/node Docker image from source
|
|
|
- run: |
|
|
|
- echo "joystream-node source modified. Will build from source."
|
|
|
- export JOYSTREAM_NODE_TAG=${{ github.event.pull_request.base.ref }}
|
|
|
- docker-compose build
|
|
|
+ - name: Build joystream/node Docker image from source
|
|
|
+ run: JOYSTREAM_NODE_TAG=${{ github.event.pull_request.base.ref }} docker-compose build
|
|
|
if: env.GIT_DIFF
|
|
|
- name: Start chain
|
|
|
run: JOYSTREAM_NODE_TAG=${{ github.event.pull_request.base.ref }} docker-compose up -d
|