Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[RFC] Removal of publicly-facing workflowsΒ #140

Open
@damienwebdev

Description

@damienwebdev

πŸ’‘ Feature request

Feature Name

No public workflows.

The Desired Behavior

I would like for there to be no workflows available in the public API of this repo.

Your Use Case

Previously, we exposed an integration workflow that others could use to run integration tests.

This is rather brittle and is too inflexible for more complex use-cases like #14 or supporting Opensearch or any search driver/database service/caching service, etc.

The reason we had workflows in the first place was so that I could encapsulate the services logic that the workflows use. It turns out that we don't need to do this at all.

Instead, I would like to expose an action with a usage interface like:

jobs:
    compute_env:
      runs-on: ubuntu-latest
      outputs:
        matrix: ${{ steps.supported-services.outputs.services }}
      steps:
        - uses: actions/checkout@v3

        - uses: mage-os/github-actions/supported-version@main
           id: supported-version

        - uses: mage-os/github-actions/supported-services@main
           id: supported-services
           with:
               configurations: '?'
    
    test
        needs: [compute_matrix]
        services: ${{ fromJson(needs.compute_env.outputs.services ) }}
        steps:
           - run: echo "Run tests..."
             shell: bash

I would like some feedback on what the API of such an action could be.

My current struggle is to find an input that allows controlled flexibility.

configuration - minimal, common, full, commerce-cloud, custom

Prior Work

#14
#139

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions