Skip to content

Working example of setting up Continuous Integration & Continuous Delivery pipeline using GitHub Actions on a Tic Tac Toe App.

License

Notifications You must be signed in to change notification settings

hemrajanilavesh/github-actions-for-ci-cd

Repository files navigation

Using Github Actions for CI-CD Workflow

Node.js CI codecov Known Vulnerabilities

The repository contains a working example of Continuous Integration & Continuous Delivery of a Tic Tac Toe Web App.

Workflow Contents

Workflow yaml can be found here

It has the following Jobs:

  1. Build
    • Install Node Dependencies
    • Build webpack
    • Upload webpack artifact
  2. Test
    • Run tests against different platforms using below matrix strategy:
      OS Node version 1 Node version 2
      ubuntu-latest12.x14.x
      windows-201612.x14.x
  3. Coverage
  4. Security
    • Run Snyk to check for vulnerabilities
  5. Build-and-Push-Docker-Image
    • Download Webpack Artifact
    • Build Docker Image and include webpack
    • Publish Docker Image to Github Registry
Published Image can be found here

Actions Used in the Workflow

References

Building and Testing Node.js

Github Learning Lab: Continuous Integration

Github Learning Lab: Publish to GitHub Packages