Installs Puccini in your GitHub action runner, allowing you to validate and compile TOSCA and CSAR.
Here's an example of using it to validate TOSCA on every push. The file would be
.github/workflows/validate-tosca.yaml
in a git repository:
name: Validate TOSCA
on: [push]
jobs:
CompileTOSCA:
runs-on: ubuntu-latest
steps:
- name: Setup Puccini
uses: tliron/setup-puccini@v1
with:
version: main
- name: Check out repository code
uses: actions/checkout@v3
- name: Compile TOSCA
run: puccini-tosca compile --coerce ${{ github.workspace }}/my-tosca.yaml
Note that version
is optional, with the default being main
, which will install
the latest HEAD commit. You can use any version tag (or branch name) instead from
the Puccini repository.
Setup Puccini TOSCA is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.