Some checks failed
Test Forgejo Actions Setup / test-setup (push) Failing after 5s
52 lines
No EOL
1.2 KiB
YAML
52 lines
No EOL
1.2 KiB
YAML
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 |