Basic GitHub Actions Flow
Learn fundamentals of the basic GitHub Actions flow.
We'll cover the following...
As we delve deeper into the world of GitHub Actions, understanding the basic workflow is crucial. In this lesson, we'll explore a simple GitHub Actions flow and the key components that make it up.
Press + to interact
name: CIon: [push]jobs:build:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v2- name: Run testsrun: npm test
In GitHub Actions, our workflows are defined in YAML files that reside in the .github/workflows
directory at the root of our repository. Each workflow file represents a separate workflow. When an event that a workflow subscribes to occurs, GitHub instantiates a new runner, loads the workflow file, and executes the jobs in it.
This simple workflow file introduces some fundamental components of GitHub Actions syntax: