Skip to content

Commit

Permalink
ci: Tilt ci checks
Browse files Browse the repository at this point in the history
  • Loading branch information
k3yss committed Nov 12, 2024
1 parent 46328ce commit 5a4a1e3
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tilt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Tilt CI"
on:
pull_request:
branches: [ main ]
jobs:
tilt-ci:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- 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"
k3d-version: v5.7.4
args: >-
--image rancher/k3s:v1.30.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: 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: Clean Up
if: always()
run: |
rm -rf ci/tasks/smoketest-settings
k3d cluster delete --all

0 comments on commit 5a4a1e3

Please sign in to comment.