fix: Use job context for unique artifact names #124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Action | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Test action syntax | |
| run: | | |
| # Validate action.yml syntax | |
| cat action.yml | |
| # Check required files exist | |
| test -f scripts/deploy.sh | |
| test -f scripts/setup-vps.sh | |
| test -f scripts/setup.ts | |
| test -f templates/docker-compose.yml | |
| test -f templates/.env.template | |
| test -f templates/.mautic_env | |
| test -f templates/nginx-virtual-host-template | |
| echo "✅ All required files exist" | |
| - name: Validate shell scripts | |
| run: | | |
| # Check shell script syntax | |
| bash -n scripts/deploy.sh | |
| bash -n scripts/setup-vps.sh | |
| echo "✅ Shell scripts are valid" | |
| - name: Validate TypeScript | |
| run: | | |
| # Install Deno for TypeScript validation | |
| curl -fsSL https://deno.land/install.sh | sh | |
| export PATH="$HOME/.deno/bin:$PATH" | |
| # Check TypeScript syntax | |
| deno check scripts/setup.ts | |
| echo "✅ TypeScript files are valid" | |
| - name: Check file permissions | |
| run: | | |
| # Ensure scripts are executable | |
| chmod +x scripts/*.sh | |
| echo "✅ Script permissions set" |