Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: support range in test.pipeline #1385

Open
smoser opened this issue Jul 18, 2024 · 0 comments
Open

RFE: support range in test.pipeline #1385

smoser opened this issue Jul 18, 2024 · 0 comments

Comments

@smoser
Copy link
Contributor

smoser commented Jul 18, 2024

I was trying to iterate over a test pipeline, but it didn't work for me.
Its possible I just don't have the right syntax.

package:
  name: test-me2
  version: 1.0
  epoch: 0

environment:
  contents:
    packages:
      - busybox
      - git

pipeline:
  - runs: |
      p=${{targets.contextdir}}/usr/bin/yo-world
      mkdir -p $(dirname "$p")
      { echo "#!/bin/sh"; echo echo hello; } > "$p"
      chmod 755 "$p"

The package will build fine.
But then if I append the stanza:

data:
  - name: stuff
    items:
      key1: val1

test:
  pipeline:
    - range: data
      runs: |
        echo testing it for ${{range.key}}/${{range.value}}
        /usr/bin/yo-world

then it won't unmarshal. So I suspect this just isn't supported.
Is this a thing we could have?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant