Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/test install script #24

Merged
merged 6 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Docker Bukild
name: Test Docker Build

on:
push:
Expand All @@ -14,6 +14,6 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Build the Docker image
run: docker build . -f Dockerfile
47 changes: 47 additions & 0 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test Validator Dashboard Installer

on:
push:
branches:
- dev
pull_request:
branches:
- dev

jobs:
test-installer:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl

- name: Download and Run Installer
run: DEBUG=true ./installer.sh

- name: Wait for Services to Start
run: |
sleep 30 # Wait for services to fully boot. Adjust if needed.

- name: Verify Docker Containers Are Running
run: |
ls
cd ./shardeum
docker compose ps
if [ $(docker compose ps -q | wc -l) -eq 0 ]; then
echo "No containers running"
exit 1
fi
if [ $(docker compose ps | grep -c "Up") -eq 0 ]; then
echo "Containers are not running"
exit 1
fi

- name: Check HTTP Response (optional, customize based on service)
run: |
curl -kf https://localhost:8080 || exit 1
13 changes: 13 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CODEOWNERS file
# To add additional teams to any approval, include them on the same line separated by spaces
# It is best practice to assign a team as a code owner and not an invidual.
# Please submit requests for new teams to Systems and Automation

# Global approval (all files)
# * @shardeum/team-name

# Directory-level approval
/.github/ @shardeum/systems-and-automation

# Specific file rules
# README.md @shardeum/team-name
Loading