From 004fda769c5ddf9fd8d482e198ff9fd158dc76c8 Mon Sep 17 00:00:00 2001 From: robojerk Date: Thu, 3 Jul 2025 10:20:29 -0700 Subject: [PATCH] Add Forgejo Actions test workflow --- .github/workflows/test-setup.yml | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/test-setup.yml 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