update service dependencies to start smoothly (#226) #388
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ci-${{ github.head_ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/[email protected] | |
- name: Run YAML Lint | |
uses: ibiqlik/[email protected] | |
with: | |
file_or_dir: . | |
strict: true | |
no_warnings: false | |
config_file: yamllint-config.yaml | |
- name: Run shellcheck | |
run: shellcheck --color=never --check-sourced --shell=bash streamr-docker-dev/bin.sh streamr-docker-dev/help_scripts.sh | |
- name: Run smoke tests | |
run: make test-smoke | |
build: | |
needs: | |
- lint | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
continue-on-error: false | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
steps: | |
- name: Check out the repo | |
uses: actions/[email protected] | |
- name: Start Streamr Docker Stack | |
# TODO the entry-point service is temporarily disabled as broker images are not yet built from streamr-1.0 branch | |
run: ./streamr-docker-dev/bin.sh start --wait --timeout 600 --except entry-point | |
- name: Collect docker logs on failure | |
if: failure() | |
uses: jwalton/[email protected] | |
with: | |
dest: 'logs' | |
- name: Upload logs to GitHub | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: docker-logs-${{ matrix.os }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt}} | |
path: 'logs' | |
- name: Stop Streamr Docker Stack | |
if: always() | |
run: | | |
docker kill $(docker ps -q) | |
docker rm $(docker ps -a -q) |