Skip to content
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
82 changes: 82 additions & 0 deletions .github/workflows/test-dev-scripts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Test Development Scripts

on:
pull_request:
paths:
- scripts/**
workflow_dispatch:

jobs:
test-dev-scripts:
name: Test Development Scripts
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
name: linux
shell: bash
script: ./scripts/dev.sh

- os: windows-latest
name: windows-powershell
shell: pwsh
script: .\scripts\dev.ps1

- os: windows-latest
name: windows-cmd
shell: cmd
script: scripts\dev.cmd

- os: macos-latest
name: macos
shell: bash
script: ./scripts/dev.sh

steps:
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21.3"

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'

- name: Install tmux (Linux/macOS)
if: matrix.os != 'windows-latest'
run: |
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
sudo apt-get update && sudo apt-get install -y tmux
elif [ "${{ matrix.os }}" = "macos-latest" ]; then
brew install tmux
fi
shell: bash

- name: Make script executable (Unix)
if: matrix.os != 'windows-latest'
run: chmod +x scripts/dev.sh
shell: bash

- name: Test script help/usage
run: ${{ matrix.script }}
shell: ${{ matrix.shell }}
continue-on-error: true

- name: Test dependency check
run: ${{ matrix.script }} setup
shell: ${{ matrix.shell }}

- name: Test build command
run: ${{ matrix.script }} build
shell: ${{ matrix.shell }}
continue-on-error: true

- name: Test backend build (quick test)
run: ${{ matrix.script }} test
shell: ${{ matrix.shell }}
continue-on-error: true
42 changes: 42 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Development Scripts

This directory contains cross-platform development scripts for the Hyperloop H10 project.

## Quick Reference

```bash
# Unix/Linux/macOS
./scripts/dev.sh setup
./scripts/dev.sh all

# Windows PowerShell
.\scripts\dev.ps1 setup
.\scripts\dev.ps1 all

# Windows Command Prompt
scripts\dev.cmd setup
scripts\dev.cmd all
```

## Complete Documentation

📚 **Full documentation has moved to: [docs/development/scripts.md](../docs/development/scripts.md)**

The complete documentation includes:
- Detailed usage instructions for all platforms
- Platform-specific notes and troubleshooting
- Advanced configuration options
- CI/CD integration details

## Available Scripts

- **`dev.sh`** - Unix/Linux/macOS development script
- **`dev.ps1`** - Windows PowerShell script (recommended)
- **`dev.cmd`** - Windows Command Prompt script
- **`dev-unified.sh`** - Universal cross-platform script

## Need Help?

- Check the [full documentation](../docs/development/scripts.md)
- Read the [getting started guide](../docs/guides/getting-started.md)
- View [troubleshooting docs](../docs/troubleshooting/)
Loading