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

Run concept exercises in CI #487

Merged

Conversation

sanderploegsma
Copy link
Contributor

@sanderploegsma sanderploegsma commented Sep 27, 2021

This fixes #469 by adding the concept exercises to the root Package.swift.

To get this working one change to the exercises was required: the exemplar implementations were all in .meta/Exemplar.swift files, which caused the exercise's tests to fail on the imports. I therefore moved all exemplar implementations to .meta/Sources/[ExerciseName]/[ExerciseName]Exemplar.swift and updated the config.json files accordingly.

Note that I removed the creation of LinuxMain.swift in the SPM manifest since the CI job no longer runs on Linux, so this is not necessary.

For us to be able to run the exercise tests against the exemplar implementations, their file names should match the file names in the solution to get the imports to work.

Therefore, instead of having a `.meta/Exemplar.swift` file in every concept exercise, the exemplar implementations have been moved to `.meta/ExemplarSources` and renamed to match the solution file.
@sanderploegsma sanderploegsma mentioned this pull request Sep 29, 2021
Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic! I've left two minor comments.

.github/workflows/ci.yml Show resolved Hide resolved
config.json Outdated Show resolved Hide resolved
config.json Outdated Show resolved Hide resolved
@ErikSchierboom ErikSchierboom added the x:size/large Large amount of work label Sep 29, 2021
Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet. I also really like how the xswift-test-spm file is no longer needed.

@ErikSchierboom ErikSchierboom merged commit 548dce5 into exercism:main Sep 30, 2021
@ErikSchierboom
Copy link
Member

@sanderploegsma We have a passing CI system again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:size/large Large amount of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test Concept Exercises in CI
2 participants