Skip to content

Support for Workspaces #37

@jackjohn7

Description

@jackjohn7

What is this?

This is a proposal to extend the configuration format to have a new workspaces parameter. Workspaces are directories that can serve as bases for execution of tests. They are constructed at competition build time and copied into testing environments at runtime. This came about when thinking about the Gleam programming language which uses a project-driven workflow rather than allowing you to compile just a single file.

Gleam example with no templating:

[workspaces]
gleam-env = { setup = "yes | gleam new ." }

# A more complex workspace with a base, gleam project, and dependencies
[workspaces.gleam-env-two]
from = "./some_dir" # some directory to act as base (perhaps you want some files pre-included)
setup = '''
yes | gleam new .
gleam add dateformat@1
gleam add birl
'''

[languages.gleam]
build = "gleam build"
run = "gleam run"
workspace = "gleam-env"
source_file = "src/main.gleam"

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