diff --git a/.github/workflows/test-setup.yml b/.github/workflows/test-setup.yml new file mode 100644 index 0000000..541ec92 --- /dev/null +++ b/.github/workflows/test-setup.yml @@ -0,0 +1,52 @@ +name: Test Forgejo Actions Setup + +on: + push: + branches: [ main, develop ] + workflow_dispatch: # Allow manual triggering + +jobs: + test-setup: + runs-on: ubuntu-24.04 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Test environment + run: | + echo "=== Forgejo Actions Test ===" + echo "Runner: $RUNNER_NAME" + echo "OS: $(uname -a)" + echo "Working directory: $(pwd)" + echo "Repository: $GITHUB_REPOSITORY" + echo "Event: $GITHUB_EVENT_NAME" + + - name: Test basic tools + run: | + echo "Testing basic tools..." + which make + which gcc + which git + which curl + + - name: Test apt-layer build + run: | + echo "Testing apt-layer build..." + make clean + make + ls -la bin/ + ./bin/apt-layer --help + + - name: Create test artifact + run: | + echo "Creating test artifact..." + echo "Forgejo Actions is working!" > test-success.txt + echo "Build completed at $(date)" >> test-success.txt + + - name: Upload test artifact + uses: actions/upload-artifact@v4 + with: + name: test-artifact + path: test-success.txt + retention-days: 1 \ No newline at end of file