name: CI
: The name of the workflow.on: [push, pull_request]
: Specifies the events that trigger the workflow. In this case, it runs on every push and pull request.jobs
: Defines the jobs within the workflow.runs-on: ubuntu-latest
: Specifies the environment where the job will run. Here, it's the latest version of Ubuntu.steps
: The individual commands and actions executed during the job. For example, it checks out the code, sets up Node.js, installs dependencies, and runs tests.
Step 2: Commit and Push the Workflow File