2.17.0 • Published 3 years ago

augustodemo v2.17.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Azure Functions CI/CD Pipeline sample for Node.js with VSTS

Sample project for Azure Functions CI/CD pipeline using Node.js with VSTS.

You can read a tutorial to create CI/CD pipeline for Azure Functions(Node.js).

This repo includes FunctionApp with two Azure Functions sample, one Unit testing, package.json, and Build/Release pipeline json files.

Usage

You can create a CI/CD pipeline for your VSTS account. Folk this repo and to enjoy learning Azure Functions CI/CD pipeline with Node.js. for more detail refer the blog post.

If you want to run this project locally, after creating FunctionApp on your Azure portal, then, Install Azure Functions CLI. Please refer this repo.

If you are using Mac,

npm i -g azure-functions-core-tools

Then, on this root dir of this repo

func azure login
func azure functionapp fetch-app-settings YOUR_FUNCTION_APP_NAME
func host start

It starts this Function App on your localmachine.

Structure

I'd like to explain the directory structure.

Pipeline

This directory includes json/yaml files which you can import on your VSTS account.

Filenamedescription
Node.CI.jsonBuild Definition file
Node.Release.jsonRelase Definition file
build.yamlBuild Definition which you can use YAML task

Scheduler function

HttpTrigger node function with StorageQueue bindings. Also, this functions require express package for sumilate large library import.

Worker function

Storage Queue Trigger function. This function just emit a log file.

Tests

An example of unit testing for node based Azure Functions. It inlcudes mocking and spying the object.

package.json

It includes several npm scripts.

Script namedescription
npm testexecute unit tests
npm run reportexecute unit tests and create a junit-style test results
npm run security-checkexecute security check using nsp
npm run packBundle functions using funcpack
npm run lintLinting using ESlint
2.17.0

3 years ago

2.15.0

3 years ago

2.16.0

3 years ago

2.14.0

3 years ago

1.19.0

3 years ago

1.18.0

3 years ago

2.13.0

3 years ago

2.11.0

3 years ago

2.12.0

3 years ago

2.5.0

3 years ago

2.10.0

3 years ago

2.7.0

3 years ago

2.6.0

3 years ago

2.9.0

3 years ago

2.8.0

3 years ago

1.20.0

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago