github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/src/test/packages/03-deprecated-component-scripts/jackal.yaml (about)

     1  kind: JackalPackageConfig
     2  metadata:
     3    name: deprecated-component-scripts
     4    description: Test to verify the deprecated component scripts functionality gets migrated to the 'actions' while maintaining past functionality (see src/pkg/packager/deprecated)
     5  
     6  components:
     7    # Test that prepare scripts become onCreate actions
     8    - name: 1-test-deprecated-prepare-scripts
     9      scripts:
    10        prepare:
    11          # on Windows, touch is replaced with New-Item
    12          - touch test-deprecated-prepare-hook.txt
    13  
    14    # Test that deploy scripts become onCreate actions
    15    - name: 2-test-deprecated-deploy-scripts
    16      scripts:
    17        before:
    18          - touch test-deprecated-deploy-before-hook.txt
    19        after:
    20          - touch test-deprecated-deploy-after-hook.txt
    21  
    22    # Test that script timeouts still get set
    23    - name: 3-test-deprecated-timeout-scripts
    24      scripts:
    25        timeoutSeconds: 1
    26        before:
    27          - sleep 5