🤖 CI Backend - dvsa/des-workflow-actions GitHub Wiki

Description

This reusable workflow automates Continuous Integration (CI) tasks for a Node.js project. It includes steps for checking out the code, setting up the Node.js environment, installing dependencies, building the project, running tests, and packaging artifacts for deployment. Additionally, it supports integration tests with DynamoDB if required.

Workflow Triggers

On Workflow Call

This workflow is called from the DES backend service repositories when a pull request into the develop branch or a release branch is opened.

Environment Variables

Name Description
DES_ACCESS_TOKEN The access token required to access the DVSA private packages
NVMRC The version of NodeJS outlined in .nvmrc
SERVICE_NAME The microservice name outlined in package.json

Inputs

Name Description Options
dynamodb Require an install of Serverless DynamoDB true | false

Artefacts Generated

Artifacts are uploaded to the GitHub Action Summary for easy access.

Notes

  • This workflow assumes the presence of a .nvmrc file to determine the Node.js version
  • Integration tests with DynamoDB are executed only if the dynamodb input is set to true