Some checks failed
Test CI Pipeline / test (push) Failing after 1s
Switch from catthehacker images to plain ubuntu:22.04: - Add environment setup step to install basic tools - Install Node.js from official repository - Remove container tests that conflict with Podman setup 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
No EOL
1.2 KiB
YAML
48 lines
No EOL
1.2 KiB
YAML
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: Setup environment
|
|
run: |
|
|
echo "Setting up plain Ubuntu environment..."
|
|
apt-get update
|
|
apt-get install -y curl wget git build-essential
|
|
|
|
- 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: Install Node.js
|
|
run: |
|
|
echo "Installing Node.js..."
|
|
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
|
apt-get install -y nodejs
|
|
|
|
- name: Test Node.js environment
|
|
run: |
|
|
echo "Testing Node.js environment..."
|
|
node --version
|
|
npm --version
|
|
node test.js |