Initial commit: loc_az_hci (smom-dbis-138 excluded via .gitignore)
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
35
.github/workflows/deploy.yml
vendored
Normal file
35
.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Deploy Validation
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
environment:
|
||||
description: 'Deployment environment'
|
||||
required: true
|
||||
default: 'staging'
|
||||
type: choice
|
||||
options:
|
||||
- staging
|
||||
- production
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Validate deployment
|
||||
run: |
|
||||
echo "Deployment validation for: ${{ github.event.inputs.environment }}"
|
||||
echo "Note: Actual deployment requires infrastructure access"
|
||||
echo "This workflow validates configuration only"
|
||||
|
||||
- name: Check prerequisites
|
||||
run: |
|
||||
if [ -f scripts/utils/prerequisites-check.sh ]; then
|
||||
chmod +x scripts/utils/prerequisites-check.sh
|
||||
./scripts/utils/prerequisites-check.sh || true
|
||||
fi
|
||||
|
||||
62
.github/workflows/test.yml
vendored
Normal file
62
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ main, develop ]
|
||||
push:
|
||||
branches: [ main, develop ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Bash
|
||||
run: |
|
||||
echo "Bash version:"
|
||||
bash --version
|
||||
|
||||
- name: Install shellcheck
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y shellcheck
|
||||
|
||||
- name: Lint scripts
|
||||
run: |
|
||||
if [ -f scripts/quality/lint-scripts.sh ]; then
|
||||
chmod +x scripts/quality/lint-scripts.sh
|
||||
./scripts/quality/lint-scripts.sh || true
|
||||
else
|
||||
echo "Lint script not found, skipping"
|
||||
fi
|
||||
|
||||
- name: Validate scripts
|
||||
run: |
|
||||
if [ -f scripts/quality/validate-scripts.sh ]; then
|
||||
chmod +x scripts/quality/validate-scripts.sh
|
||||
./scripts/quality/validate-scripts.sh || true
|
||||
else
|
||||
echo "Validate script not found, skipping"
|
||||
fi
|
||||
|
||||
- name: Validate documentation
|
||||
run: |
|
||||
if [ -f scripts/docs/validate-docs.sh ]; then
|
||||
chmod +x scripts/docs/validate-docs.sh
|
||||
./scripts/docs/validate-docs.sh || true
|
||||
else
|
||||
echo "Docs validation script not found, skipping"
|
||||
fi
|
||||
|
||||
- name: Check YAML syntax
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
run: |
|
||||
pip install yamllint
|
||||
yamllint -d relaxed . || true
|
||||
|
||||
Reference in New Issue
Block a user