Skip to content

Basic web app to show GitHub Actions and workflow options

Notifications You must be signed in to change notification settings

gidavies/SimpleWebApp

Repository files navigation

SimpleWebApp

A very basic Node.js app to use as an example for workflows using GitHub Actions.

Workflow status

.github/workflows/deploy_prod.yml

.github/workflows/deploy_test.yml

.github/workflows/pr_checks.yml

Workflows

The Node app can be deployed to Azure App Service with the included workflows, which are based on the default Actions. There are workflows that are triggered on the following events:

  • Creating a PR.
  • Adding a label during a PR.
  • Merging into main.

There are two reusable workflows:

  • build.yml which performs an npm install, build and test,
  • deploy_to_azure.yml which deploys the web app to Azure App Service.

These are called by three calling workflows:

flowchart LR

A(PR) -->|Triggers| B(pr_checks.yml)
B -->|Calls| C(build.yml)
D(Add label in PR) -->|Triggers| E(deploy_test.yml)
E -->|Calls| C(build.yml)
E -->|Calls| F(deploy_to_azure.yml)
G(Push to main) -->|Triggers| H(deploy_prod.yml)
H -->|Calls| C(build.yml)
H -->|Calls| F(deploy_to_azure.yml)
F -->|Needs| C(build.yml)

(This is an embedded Markdown defined Mermaid diagram)

About

Basic web app to show GitHub Actions and workflow options

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published