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

chore: run tests on CI #63

Merged
merged 6 commits into from
Jun 9, 2023
Merged

chore: run tests on CI #63

merged 6 commits into from
Jun 9, 2023

Conversation

hawkw
Copy link
Contributor

@hawkw hawkw commented Jun 7, 2023

Currently, CI just runs cargo check and cargo fmt, and never actually runs host tests. Some crates in the repo, such as forth3, contain tests that should be run on the host.

This branch adds a cargo test job to the CI workflow.

Closes #58

Currently, CI just runs `cargo check` and `cargo fmt`, and never
actually runs host tests. Some crates in the repo, such as `forth3`,
contain tests that should be run on the host.

This branch adds a `cargo test` job to the CI workflow.

Closes #58
@hawkw hawkw requested a review from jamesmunns June 7, 2023 14:45
@netlify
Copy link

netlify bot commented Jun 7, 2023

Deploy Preview for merry-scone-cc7a60 ready!

Name Link
🔨 Latest commit cba1ecd
🔍 Latest deploy log https://app.netlify.com/sites/merry-scone-cc7a60/deploys/648342c8ffbae7000840662e
😎 Deploy Preview https://deploy-preview-63--merry-scone-cc7a60.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jamesmunns
Copy link
Contributor

Looks like the build is failing because e-g-sim requires libsdl2-dev installed.

Would it make sense to restore the forth3 miri tests here too?

@hawkw
Copy link
Contributor Author

hawkw commented Jun 7, 2023

Looks like the build is failing because e-g-sim requires libsdl2-dev installed.

Would it make sense to restore the forth3 miri tests here too?

yeah, it would!

hawkw added 5 commits June 7, 2023 10:03
currently, the kernel crate doesn't use any custom test harnesses, so
this is not necessary. since the kernel is intended to be cross
platform, it's unclear to me whether we will ever want to write
platform-specific tests in the kernel crate, or if we'll just run host
tests there and run platform-specific tests in platform crates.

in any case, `harness = "false"` was making `cargo test` runs in the whole
workspace fail, so i've removed it. alternatively, we could change CI
to only test specific packages that have host tests, but it's nice for
`cargo test`/`cargo nextest run` to Just Work.

@jamesmunns, does that seem reasonable to you?
@hawkw hawkw merged commit fe46d8e into main Jun 9, 2023
10 checks passed
@hawkw hawkw deleted the eliza/ci-test branch June 9, 2023 15:50
@jamesmunns jamesmunns added the area: tools & build Related to host developer tools, including tracing, Crowtty and build processes label Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tools & build Related to host developer tools, including tracing, Crowtty and build processes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[chore]: Restore forth3's CI
2 participants