Skip to content

Commit

Permalink
feat: Add .github config
Browse files Browse the repository at this point in the history
  • Loading branch information
k3yss committed Oct 23, 2024
1 parent cacd57e commit 32ab6f4
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS: [e.g. Ubuntu/Windows/MacOS]
- Environment type [e.g. AWS/GCP/Minikube]
- k8s version [e.g. v1.21]

**Additional context**
Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/workflows/bot-automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: automerge
on:
pull_request_review:
types:
- submitted
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: galoybot
MERGE_FORKS: false
MERGE_METHOD: squash
MERGE_REQUIRED_APPROVALS: 1
17 changes: 17 additions & 0 deletions .github/workflows/cleanup-after-pr-closed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: cleanup-after-pr-closed
on:
pull_request:
types: [closed]
jobs:
cancel-runs:
name: Cleanup after PR closed
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cancel build runs
uses: styfle/[email protected]
with:
ignore_sha: true
workflow_id: tilt.yaml
15 changes: 15 additions & 0 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check formatting
on:
pull_request:
branches: [main]

jobs:
fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout code into workspace directory
uses: actions/checkout@v2
- name: Terraform fmt
uses: hashicorp/setup-terraform@v2
- run: terraform fmt -recursive .
- run: git diff --exit-code
79 changes: 79 additions & 0 deletions .github/workflows/tilt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
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: 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: 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

0 comments on commit 32ab6f4

Please sign in to comment.