chore: Optimize dev-chain-fast
healthcheck
#427
Workflow file for this run
This file contains hidden or 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 | |
run: ./streamr-docker-dev/bin.sh start --wait --timeout 600 | |
- 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@v4 | |
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) |