Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Minimal Ubuntu Linux configuration

name: Minimal Ubuntu

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Single step
      run: echo Hello World

    - name: Look around
      run: |
        uname -a
        pwd     # /home/runner/work/REPO/REPO
        whoami  # runner
        uptime
        which perl
        which python
        which python3
        which ruby
        which node
        which java
        perl -v
        python -V
        python3 -V
        ruby -v
        node -v
        javac -version
        java -version

Keywords:

  • name - just some descriptive name.
  • on - what action triggers the running of this workflow.
  • jobs - one or more jobs to run

User selected value:

  • build - this name is arbitrary, you can use any word for the name of your jobs.

Keywords

  • runs-on the platform (operating system) the job runs on. (e.g. Ubuntu, Windows, Mac)
  • steps - various steps to be executed each step can have a name and it must have a run.
    • name - optional, just a description
    • run - a bunch of commands executed in a shell.