Add Forgejo Actions test workflow
Some checks failed
Test Forgejo Actions Setup / test-setup (push) Failing after 5s
Some checks failed
Test Forgejo Actions Setup / test-setup (push) Failing after 5s
This commit is contained in:
parent
5f7b4b5696
commit
004fda769c
1 changed files with 52 additions and 0 deletions
52
.github/workflows/test-setup.yml
vendored
Normal file
52
.github/workflows/test-setup.yml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue