cloudbuild-task-local
TypeScript icon, indicating that this package has built-in type declarations

0.1.185-beta • Public • Published

cloudbuild-task-local

These NPM packages are typed with TypeScript MIT license Required Node

This package implements the cloudbuild-task-contracts abstraction for running a task locally. This allows a build task that was written against that abstraction to run on any machine, with certain CI system inputs/outputs mocked up. This is useful for development and automated testing of your task.

Example usage

import { LocalFactory } from 'cloudbuild-task-local';
import { run } from './MyPortableTask';

async function testRunner() {
  const mockedInputs = {
    input1: 'enabled',
  };
  const factory = await LocalFactory.CreateAsync(mockedInputs);
  run(factory);
}

testRunner();

Readme

Keywords

none

Package Sidebar

Install

npm i cloudbuild-task-local

Weekly Downloads

9

Version

0.1.185-beta

License

MIT

Unpacked Size

38.9 kB

Total Files

34

Last publish

Collaborators

  • andrewarnott