-
Notifications
You must be signed in to change notification settings - Fork 25
85 lines (85 loc) · 2.87 KB
/
tilt.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: "Tilt CI"
on:
pull_request:
branches: [ main ]
jobs:
tilt-ci:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: AbsaOSS/k3d-action@v2
name: "Create Single Cluster"
with:
cluster-name: "k3s-default"
args: >-
--image rancher/k3s:v1.27.4-k3s1
-v "$(pwd):/charts"
--k3s-arg --disable=traefik@server:0
--k3s-arg --disable=servicelb@server:0
- name: Tilt CI
run: |
pushd dev
for i in {1..5}; do
echo "Tilt CI attempt $i"
nix develop -c tilt ci && exit 0 || sleep 60
done
exit 1
- name: Galoy Smoketest
run: |
pushd dev
kubectl -n galoy-dev-smoketest exec smoketest -- bash -c "cd /charts/ci/tasks && \
CHART=galoy ./dev-smoketest-settings.sh && \
./galoy-smoketest.sh && \
rm -rf smoketest-settings"
- name: Bitcoin Smoketest
run: |
pushd dev
kubectl -n galoy-dev-smoketest exec smoketest -- bash -c "cd /charts/ci/tasks && \
CHART=bitcoind ./dev-smoketest-settings.sh && \
./bitcoind-smoketest.sh regtest && \
rm -rf smoketest-settings"
- name: LND Smoketest
run: |
pushd dev
kubectl -n galoy-dev-smoketest exec smoketest -- bash -c "cd /charts/ci/tasks && \
CHART=lnd ./dev-smoketest-settings.sh && \
./lnd-smoketest.sh && \
rm -rf smoketest-settings"
- name: Loop Smoketest
run: |
pushd dev
kubectl -n galoy-dev-smoketest exec smoketest -- bash -c "cd /charts/ci/tasks && \
CHART=loop ./dev-smoketest-settings.sh && \
./loop-smoketest.sh && \
rm -rf smoketest-settings"
- name: Monitoring Smoketest
run: |
pushd dev
kubectl -n galoy-dev-smoketest exec smoketest -- bash -c "cd /charts/ci/tasks && \
CHART=monitoring ./dev-smoketest-settings.sh && \
./monitoring-smoketest.sh && \
rm -rf smoketest-settings"
- name: Galoy Pay Smoketest
run: |
pushd dev
kubectl -n galoy-dev-smoketest exec smoketest -- bash -c "cd /charts/ci/tasks && \
CHART=galoy-pay ./dev-smoketest-settings.sh && \
./galoy-pay-smoketest.sh && \
rm -rf smoketest-settings"
- name: Mempool smoketest
run: |
pushd dev
kubectl -n galoy-dev-smoketest exec smoketest -- bash -c "cd /charts/ci/tasks && \
CHART=mempool ./dev-smoketest-settings.sh && \
./mempool-smoketest.sh && \
rm -rf smoketest-settings"
- name: Clean Up
if: always()
run: |
rm -rf ci/tasks/smoketest-settings
k3d cluster delete --all