Interview Prep/CI/CD/GitHub Actions Failures

Workflow never triggers after pushing. No run appears in the Actions tab.

BeginnerTroubleshootingGitHub Actions Failures
Answer

Likely causes → File not under .github/workflows/; invalid YAML; on: filters (branches/paths) do not match; workflow exists only on a non-default branch for schedule/workflow_dispatch; [skip ci] in the commit; Actions disabled.

Diagnose →

gh workflow list
gh run list --workflow ci.yml
actionlint .github/workflows/*.yml

Fix → Fix path/YAML, adjust the filters, and push to the right branch.

Prevent → Run actionlint in pre-commit.

All CI/CD questions

More on GitHub Actions Failures