alexcnichols / dual-run-action-example

An example of a program that can be run either directly or via GitHub Actions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dual-run-action-example

An example of a program that can be run either directly or via GitHub Actions.

Running directly

  1. Clone locally (or open in GitHub Codespaces)
  2. Create a ./.env file with the following variables:
    1. name=Alex: The name for the greeting
  3. Run npm install in the terminal
  4. Run node index.js in the terminal

Running as an Actions workflow

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: ./

About

An example of a program that can be run either directly or via GitHub Actions.

License:MIT License


Languages

Language:JavaScript 100.0%