Skip to content

Add CI workflows for testing and version checks, enhance README and T… #1

Add CI workflows for testing and version checks, enhance README and T…

Add CI workflows for testing and version checks, enhance README and T… #1

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
# Run all individual checks in parallel
lint:
uses: ./.github/workflows/lint.yml

Check failure on line 14 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

error parsing called workflow ".github/workflows/ci.yml" -> "./.github/workflows/lint.yml" : workflow is not reusable as it is missing a `on.workflow_call` trigger
version-check:
uses: ./.github/workflows/check-version.yml
if: github.event_name == 'pull_request'
test:
uses: ./.github/workflows/test.yml
# Final status check
ci-success:
runs-on: ubuntu-latest
needs: [lint, test]
if: always()
steps:
- name: Check all jobs status
run: |
if [[ "${{ needs.lint.result }}" != "success" ]]; then
echo "Lint job failed"
exit 1
fi
if [[ "${{ needs.test.result }}" != "success" ]]; then
echo "Test job failed"
exit 1
fi
if [[ "${{ github.event_name }}" == "pull_request" && "${{ needs.version-check.result }}" != "success" ]]; then
echo "Version check job failed"
exit 1
fi
echo "All CI checks passed!"