chart-testing-action
                                
                                 chart-testing-action copied to clipboard
                                
                                    chart-testing-action copied to clipboard
                            
                            
                            
                        ct.yaml in workdir overrides "config:"
I have a ct.yaml in the root of my repo and want to override this for a particular step. I tried this:
    - name: Run chart-testing (lint)
      id: lint
      uses: helm/[email protected]
      with:
        command: lint
        config: test-suite.ct.yaml
This means:
- test-suite.ct.yamlfile is mounted to- /etc/ct/ct.yamlinside the container
- /workdirinside the container contains the- ct.yamlfrom the root of my repo
Due to the precedence rules of chart-testing config files the /workdir/ct.yaml is used instead of /etc/ct/ct.yaml. This was surprising to me.
It seems like reasonable behaviour once I understood what's going on, but it's something of a gotcha. Would you accept a PR documenting this behaviour in the README?
Forgot to mention the workaround: If you need to have multiple ct.yaml configuration files, name them something other than /ct.yaml, and specify them explicitly for each step.
Can you test with v2.0.0? It should avoid this problem altogether.
closing, no response from the submitter