Want to finally understand YAML and how it powers GitHub Actions? In this video, we’re breaking down the YAML syntax used in workflows — with a real-world demo running automated tests using npm install and npm test.
👨💻 First, we’ll run the tests locally in the terminal to show how it works on your machine.
⚙️ Then, we’ll create a GitHub Actions workflow that runs the same tests automatically when you push code — giving you a powerful intro to CI/CD!
✅ Perfect for JavaScript/Node.js projects, but the YAML principles apply to any language!
📺 Watch the full playlist:: • Introduction to GitHub Actions | Automate ...
GitHub repository: https://github.com/DevTips-Daily/gith...
👨💻 Workflow example used:
name: Run Tests
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
uses: actions/checkout@v3
name: Run tests
run: |
npm install
npm test
💡 What You’ll Learn:
How YAML works in GitHub Actions
Indentation, structure, and syntax basics
How to run jobs using runs-on, steps, and run
Automating npm test on push to main
Common YAML mistakes and how to fix them
👉 Don’t forget to like, comment, and subscribe for more CI/CD tutorials!
🔔 Next up: Triggers & Events in GitHub Actions (push, pull_request, cron jobs & more)