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
name - just some descriptive name.
on - what action triggers the running of this workflow.
jobs - one or more jobs to run
build - this name is arbitrary, you can use any word for the name of your jobs.
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.