Run a job in parallel in the same workflow but with a different context

workflow

#1

Hi,

Here’s my current workflows setup:

workflows:
  version: 2

  foo:
    jobs:
      - checkout
      - bundle:
          context: foo
          requires:
            - checkout
      - test:
          context: foo
          requires:
            - bundle

  bar:
    jobs:
      - checkout
      - bundle:
          context: bar
          requires:
            - checkout
      - test:
          context: bar
          requires:
            - bundle

Would it be possible to run the bundle job in parallel in the same workflow but with a different context. I think of something like this:

workflows:
  version: 2

  foobar:
    jobs:
      - checkout
      - bundle:
          context: foo
          requires:
            - checkout
      - bundle:
          context: bar
          requires:
            - checkout
      - test:
          context: foo
          requires:
            - bundle   <= the bundle job with the `foo` context
      - test:
          context: foo
          requires:
            - bundle   <= the bundle job with the `bar` context


#2