commit 1668b6bf8b910e7986e7500d28b501893b04cb9b Author: Evan Carroll Date: Sun Jun 8 00:38:50 2025 -0500 Initial commit with test CI workflow Add test repository to verify Forgejo runner deployment: - Basic CI workflow testing system info and container runtime - Test Podman container execution - Simple Node.js test script 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..0b5d84a --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,40 @@ +name: Test CI Pipeline + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Test system information + run: | + echo "Testing Forgejo runner with Podman support" + echo "Runner OS: $(uname -a)" + echo "Current user: $(whoami)" + echo "Working directory: $(pwd)" + ls -la + + - name: Test container runtime + run: | + echo "Testing container runtime..." + which podman || echo "Podman not found in PATH" + podman --version || echo "Podman version failed" + + - name: Test simple container + run: | + echo "Testing simple container execution..." + podman run --rm alpine:latest echo "Hello from Alpine container!" + + - name: Test Node.js environment + run: | + echo "Testing Node.js environment..." + node --version || echo "Node.js not available" + npm --version || echo "npm not available" \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..eacec50 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Test Repository + +This is a test repository to verify the Forgejo runner deployment with Podman support. + +## Features +- Tests CI/CD pipeline with Forgejo Actions +- Uses ubuntu-latest runner +- Demonstrates Podman container execution \ No newline at end of file diff --git a/test.js b/test.js new file mode 100644 index 0000000..963d041 --- /dev/null +++ b/test.js @@ -0,0 +1,19 @@ +// Simple test script to verify CI environment +console.log("Hello from test.js!"); +console.log("Environment variables:"); +console.log("NODE_VERSION:", process.version); +console.log("PLATFORM:", process.platform); +console.log("ARCH:", process.arch); + +// Test basic functionality +const sum = (a, b) => a + b; +const result = sum(2, 3); +console.log("2 + 3 =", result); + +if (result === 5) { + console.log("✅ Test passed!"); + process.exit(0); +} else { + console.log("❌ Test failed!"); + process.exit(1); +} \ No newline at end of file