An example of a program that can be run either directly or via GitHub Actions.
- Clone locally (or open in GitHub Codespaces)
- Create a
./.env
file with the following variables:name=Alex
: The name for the greeting
- Run
npm install
in the terminal - Run
node index.js
in the terminal
name: example
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: Example
steps:
- name: Checkout
uses: actions/checkout@v2
- name: npm install
run: npm install
- name: Run example
uses: ./