Problem Statement
Where are GitHub Actions workflows stored?
Explanation
GitHub Actions workflows are stored in .github/workflows/ directory as YAML files. Each file defines a separate workflow that can be triggered by various events (push, pull request, schedule, manual). Multiple workflow files enable organizing different CI/CD processes (build, test, deploy, release) separately while maintaining them in the same repository.
Basic workflow structure:
```yaml
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: npm test
```
Workflow files must be in .github/workflows/ to be detected by GitHub. File names can be anything (ci.yml, deploy.yml, release.yml) with .yml or .yaml extension. GitHub automatically discovers and executes workflows based on their triggers. Changes to workflow files affect subsequent runs. Understanding workflow file location and structure is fundamental to GitHub Actions.
