All checks were successful
Test CI / test (push) Successful in 0s
## Summary - Fix workflow to use `github.*` context variables (Forgejo schema validator only recognizes GitHub Actions syntax, not `gitea.*` aliases) - Pass untrusted inputs through environment variables (security best practice per actionlint) - Add actionlint to Brewfile and pre-commit config to catch workflow validation errors locally ## Deployment and Testing - [x] Pre-commit hooks all pass - [x] actionlint validates `.forgejo/workflows/test.yaml` successfully - [ ] Verify workflow runs without errors on Forge after merge 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.tail8d86e.ts.net/eblume/blumeops/pulls/49
33 lines
914 B
YAML
33 lines
914 B
YAML
name: Test CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout (git clone)
|
|
run: |
|
|
# For PRs use head_ref (branch name), for pushes use ref_name
|
|
BRANCH="${HEAD_REF:-$REF_NAME}"
|
|
git clone --depth 1 --branch "$BRANCH" \
|
|
"${SERVER_URL}/${REPOSITORY}.git" .
|
|
env:
|
|
GIT_SSL_NO_VERIFY: "true"
|
|
HEAD_REF: ${{ github.head_ref }}
|
|
REF_NAME: ${{ github.ref_name }}
|
|
SERVER_URL: ${{ github.server_url }}
|
|
REPOSITORY: ${{ github.repository }}
|
|
|
|
- name: Hello World
|
|
run: |
|
|
echo "Hello from Forgejo Actions!"
|
|
echo "Runner: $(hostname)"
|
|
echo "Repository: ${{ github.repository }}"
|
|
echo "Event: ${{ github.event_name }}"
|
|
echo "Ref: ${{ github.ref }}"
|
|
ls -la
|