swiftlang / swiftlang/github-workflows
Add option to run Snippets as part of testing
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 115
- Forks
- 57
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 3
Description
Today it is possible to do swift run <SnippetName> if they are present in the Swift package. It would be great to have the ability to verify that the Snippets work cross-platform, and the best way I see is to allow doing this in GitHub pipelines.
Thinking about it, I believe it would make sense to have a configuration option which Snippets to run. I don't think there is a way now to run all snippets in one swift call anyway.
Background info: the pitch about snippets is here, and should be implemented in 5.7, so all supported versions in this workflow should be able to run them.
Will there be interest in such a feature?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the repository’s existing GitHub workflow configuration and the Swift 5.7 snippet behavior described in the issue. Determine how a workflow could select snippets for swift run <SnippetName> across supported platforms. Done means the configuration is documented and the selected snippets run successfully in the relevant GitHub pipelines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, swift
- Domain
- ci-cd
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100