JesperTerkelsen / actions-template-test

Test helper for backstage scaffolder templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Actions-template-test

Github action to help validate scaffolder templates for backstage.

The github action takes the same arguments as the template action.

Use as github action

jobs:
  template:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - uses: tradeshift/actions-template-test@v1
        with:
          url: ./template
          targetPath: ./tmp
          values: |
          {
            "name": "App",
            "type": "public"
          }

Use from node

Note: to be published

const { runTemplate } = require('@tradeshift/actions-template-test');

await runTemplate({
  url: './template',
  targetPath: './tmp',
  values: {},
});

About

Test helper for backstage scaffolder templates

License:MIT License


Languages

Language:JavaScript 64.0%Language:TypeScript 36.0%