🎓 A1Learner
🔍
0 of 50 lessons completed

GitHub Actions: Push It and Watch It Run

A push starts the workflow. The run page shows each step as it runs.

Push the file

Add the workflow file and push it to the repository.

git add .github/workflows/ci.yml
git commit -m "Add CI workflow"
git push

Open the run

The Actions tab lists the new run at the top.

CI / Add CI workflow / test

Read a step

Each step shows its own log lines.

Run npm test
✔ add adds two numbers
✔ greet greets by name

Example

name: CI

on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: '24'
      - run: npm test

Key points

  • A push to the repository starts every workflow that runs on push.
  • Use the Actions tab to open the latest run.
  • A log is the written record of what a step printed.
  • A green tick means the run passed.
  • A red cross means a step failed.
  • A yellow dot means the run is still going.
  • The run page lists each job, and each job lists its steps.
  • Click a step to read its log.
  • Push, then watch: the run page shows the whole story.

In this example, the push starts the CI workflow. The Actions tab shows the new run at the top. The run page shows one job, called test. The job shows a green tick. The npm test step shows both tests passing. The log ends with 2 tests passed and 0 failed.

Note

A run takes a minute or two. The yellow dot turns green or red when it ends.

Try it Yourself

Edit the code, then press Run.

Running is simulated · Rust Playground

Exercise

What does a green tick on a run mean?