-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 1.53 KB
/
Copy pathci.yml
File metadata and controls
65 lines (61 loc) · 1.53 KB
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
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
go:
name: go ${{ matrix.module }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
module: [cloud, agent]
defaults:
run:
working-directory: ${{ matrix.module }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache-dependency-path: ${{ matrix.module }}/go.sum
- run: go vet ./...
- run: go test -race -count=1 ./...
installer-smoke:
name: lab stack smoke
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: bring up CI cluster
run: make ci-up
timeout-minutes: 6
- name: probe CI ports
run: |
<<<<<<< HEAD
for port in 25432 27233 21883 25050; do
=======
for port in 5432 7233 1883 5001; do
>>>>>>> a2155cf (working cloud components)
for i in $(seq 1 30); do
nc -z localhost "$port" && break
sleep 2
done
nc -z localhost "$port" || { echo "port $port never came up"; exit 1; }
done
- name: tear down
if: always()
run: make ci-down
python-lint:
name: bridge lint
runs-on: ubuntu-22.04
defaults:
run:
working-directory: bridge
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: python -m pip install ruff
- run: ruff check bridge_node