-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (67 loc) · 1.84 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
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/checkout@v4.0.0
- name: Run YAML Lint
uses: ibiqlik/action-yamllint@v3.1
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/checkout@v4.0.0
- 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/gh-docker-logs@v2.2.1
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)