Skip to content

Commit

Permalink
ci: build
Browse files Browse the repository at this point in the history
  • Loading branch information
gitworkflows committed Dec 8, 2024
1 parent 7a5b9a9 commit 4a5f663
Show file tree
Hide file tree
Showing 1,626 changed files with 148,946 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/.phpunit.cache
/node_modules
/public/build
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.env.secrets
.phpunit.result.cache
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
/.fleet
/.idea
/.vscode
/.npm
/.bash_history
/_data
.rnd
/.ssh
.ignition.json
.env.dusk.local
docker/hostly-realtime/node_modules
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4
34 changes: 34 additions & 0 deletions .env.development.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Hostly Configuration
APP_ENV=local
APP_NAME="Hostly Development"
APP_ID=development
APP_KEY=
APP_URL=http://localhost
APP_PORT=8000
APP_DEBUG=true
SSH_MUX_ENABLED=true

# PostgreSQL Database Configuration
DB_DATABASE=hostly
DB_USERNAME=hostly
DB_PASSWORD=password
DB_HOST=host.docker.internal
DB_PORT=5432

# Ray Configuration
# Set to true to enable Ray
RAY_ENABLED=false
# Set custom ray port
# RAY_PORT=

# Enable Laravel Telescope for debugging
TELESCOPE_ENABLED=false

# Selenium Driver URL for Dusk
DUSK_DRIVER_URL=http://selenium:4444

# Special Keys for Andras
# For cache purging
BUNNY_API_KEY=
# For asset uploads
BUNNY_STORAGE_API_KEY=
15 changes: 15 additions & 0 deletions .env.dusk.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
APP_ENV=production
APP_NAME="Hostly Staging"
APP_ID=development
APP_KEY=
APP_URL=http://localhost
APP_PORT=8000
SSH_MUX_ENABLED=true

# PostgreSQL Database Configuration
DB_DATABASE=hostly
DB_USERNAME=hostly
DB_PASSWORD=password
DB_HOST=localhost
DB_PORT=5432

16 changes: 16 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Hostly Configuration
APP_ID=
APP_NAME=Hostly
APP_KEY=

# PostgreSQL Database Configuration
DB_USERNAME=hostly
DB_PASSWORD=

# Redis Configuration
REDIS_PASSWORD=

# Pusher Configuration
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
13 changes: 13 additions & 0 deletions .env.windows-docker-desktop.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
IS_WINDOWS_DOCKER_DESKTOP=true

APP_ID=hostly-windows-docker-desktop
APP_NAME=Hostly
APP_KEY=base64:ssTlCmrIE/q7whnKMvT6DwURikg69COzGsAwFVROm80=

DB_USERNAME=hostly
DB_PASSWORD=hostly
REDIS_PASSWORD=hostly

PUSHER_APP_ID=hostly
PUSHER_APP_KEY=hostly
PUSHER_APP_SECRET=hostly
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* text=auto eol=lf

*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php

/.github export-ignore
CHANGELOG.md export-ignore
.styleci.yml export-ignore
2 changes: 2 additions & 0 deletions .github/FUNDING.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
open_collective: khulnasoft
github: khulnasoft
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/01_BUG_REPORT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: 🐞 Bug Report
description: "File a new bug report."
title: "[Bug]: "
labels: ["🐛 Bug", "🔍 Triage"]
body:
- type: markdown
attributes:
value: |
> [!IMPORTANT]
> **Please ensure you are using the latest version of Hostly before submitting an issue, as the bug may have already been fixed in a recent update.** (Of course, if you're experiencing an issue on the latest version that wasn't present in a previous version, please let us know.)
# 💎 Bounty Program (with [algora.io](https://console.algora.io/org/khulnasoft/bounties/new))
- If you would like to prioritize the issue resolution, consider adding a bounty to this issue through our [Bounty Program](https://console.algora.io/org/khulnasoft/bounties/new).
- type: textarea
attributes:
label: Error Message and Logs
description: Provide a detailed description of the error or exception you encountered, along with any relevant log output.
validations:
required: true

- type: textarea
attributes:
label: Steps to Reproduce
description: Please provide a step-by-step guide to reproduce the issue. Be as detailed as possible, otherwise we may not be able to assist you.
value: |
1.
2.
3.
4.
validations:
required: true

- type: input
attributes:
label: Example Repository URL
description: If applicable, provide a URL to a repository demonstrating the issue.

- type: input
attributes:
label: Hostly Version
description: Please provide the Hostly version you are using. This can be found in the top left corner of your Hostly dashboard.
placeholder: "v4.0.0-beta.335"
validations:
required: true

- type: dropdown
attributes:
label: Are you using Hostly Cloud?
options:
- "No (self-hosted)"
- "Yes (Hostly Cloud)"
validations:
required: true

- type: input
attributes:
label: Operating System and Version (self-hosted)
description: Run `cat /etc/os-release` or `lsb_release -a` in your terminal and provide the operating system and version.
placeholder: "Ubuntu 22.04"

- type: textarea
attributes:
label: Additional Information
description: Any other relevant details about the issue.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/02_ENHANCEMENT_BOUNTY.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 💎 Enhancement Bounty
description: "Propose a new feature, service, or improvement with an attached bounty."
title: "[Enhancement]: "
labels: ["✨ Enhancement", "🔍 Triage"]
body:
- type: markdown
attributes:
value: |
> [!IMPORTANT]
> **This issue template is exclusively for proposing new features, services, or improvements with an attached bounty.** Enhancements without a bounty can be discussed in the appropriate category of [Github Discussions](https://github.com/khulnasoft/hostly/discussions).
# 💎 Add a Bounty (with [algora.io](https://console.algora.io/org/khulnasoft/bounties/new))
- [Click here to add the required bounty](https://console.algora.io/org/khulnasoft/bounties/new)
- type: dropdown
attributes:
label: Request Type
description: Select the type of request you are making.
options:
- New Feature
- New Service
- Improvement
validations:
required: true

- type: textarea
attributes:
label: Description
description: Provide a detailed description of the feature, improvement, or service you are proposing.
validations:
required: true
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
blank_issues_enabled: false

contact_links:
- name: 🤔 Questions and Community Support
url: https://coollabs.io/discord
about: If you have any questions, reach out to us on Discord inside the "#support" channel.

- name: 💡 Feature Request
url: https://github.com/khulnasoft/hostly/discussions/categories/feature-requests
about: Suggest a new feature for Hostly.

- name: ⚙️ Service Request
url: https://github.com/khulnasoft/hostly/discussions/categories/service-requests
about: Request a new service integration for Hostly.

- name: 🔧 Improvements
url: https://github.com/khulnasoft/hostly/discussions/categories/improvements
about: Suggest improvements to existing features for Hostly.
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Submit Checklist (REMOVE THIS SECTION BEFORE SUBMITTING)
- [ ] I have selected the `next` branch as the destination for my PR, not `main`.
- [ ] I have listed all changes in the `Changes` section.
- [ ] I have filled out the `Issues` section with the issue/discussion link(s) (if applicable).
- [ ] I have tested my changes.
- [ ] I have considered backwards compatibility.
- [ ] I have removed this checklist and any unused sections.

## Changes
-

## Issues
- fix #
65 changes: 65 additions & 0 deletions .github/workflows/browser-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Dusk
on:
push:
branches: [ "not-existing" ]
jobs:
dusk:
runs-on: ubuntu-latest

services:
redis:
image: redis
env:
REDIS_HOST: localhost
REDIS_PORT: 6379
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up PostgreSQL
run: |
sudo systemctl start postgresql
sudo -u postgres psql -c "CREATE DATABASE hostly;"
sudo -u postgres psql -c "CREATE USER hostly WITH PASSWORD 'password';"
sudo -u postgres psql -c "ALTER ROLE hostly SET client_encoding TO 'utf8';"
sudo -u postgres psql -c "ALTER ROLE hostly SET default_transaction_isolation TO 'read committed';"
sudo -u postgres psql -c "ALTER ROLE hostly SET timezone TO 'UTC';"
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE hostly TO hostly;"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Copy .env
run: cp .env.dusk.ci .env
- name: Install Dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Generate key
run: php artisan key:generate
- name: Install Chrome binaries
run: php artisan dusk:chrome-driver --detect
- name: Start Chrome Driver
run: ./vendor/laravel/dusk/bin/chromedriver-linux --port=4444 &
- name: Build assets
run: npm install && npm run build
- name: Run Laravel Server
run: php artisan serve --no-reload &
- name: Execute tests
run: php artisan dusk
- name: Upload Screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: screenshots
path: tests/Browser/screenshots
- name: Upload Console Logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: console
path: tests/Browser/console
17 changes: 17 additions & 0 deletions .github/workflows/chore-lock-closed-issues-discussions-and-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lock closed Issues, Discussions, and PRs

on:
schedule:
- cron: '0 1 * * *'

jobs:
lock-threads:
runs-on: ubuntu-latest
steps:
- name: Lock threads after 30 days of inactivity
uses: dessant/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-inactive-days: '30'
pr-inactive-days: '30'
discussion-inactive-days: '30'
28 changes: 28 additions & 0 deletions .github/workflows/chore-manage-stale-issues-and-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Manage Stale Issues and PRs

on:
schedule:
- cron: '0 2 * * *'

jobs:
manage-stale:
runs-on: ubuntu-latest
steps:
- name: Manage stale issues and PRs
uses: actions/stale@v9
id: stale
with:
stale-issue-message: 'This issue will be automatically closed in a few days if no response is received. Please provide an update with the requested information.'
stale-pr-message: 'This pull request will be automatically closed in a few days if no response is received. Please update your PR or comment if you would like to continue working on it.'
close-issue-message: 'This issue has been automatically closed due to inactivity.'
close-pr-message: 'This pull request has been automatically closed due to inactivity.'
days-before-stale: 14
days-before-close: 7
stale-issue-label: '⏱︎ Stale'
stale-pr-label: '⏱︎ Stale'
only-labels: '💤 Waiting for feedback'
remove-stale-when-updated: true
operations-per-run: 100
labels-to-remove-when-unstale: '⏱︎ Stale, 💤 Waiting for feedback'
close-issue-reason: 'not_planned'
exempt-all-milestones: false
Loading

0 comments on commit 4a5f663

Please sign in to comment.