enable running the sdk-tests locally #109
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wanted to get the tests working locally and I couldn't get the
act
to work correctly, which is what run-local-integration-tests.sh relied on.I thought we could perhaps make it so that the sdk-tests github action does not rely on anything github action specific and then we can run the action's script ourselves via
node .github/actions/compute-sdk-test/main.js
.To do this I've chosen to hard-code the test configuration path as we only have one configuration file, this removed the need for the github action specific
@actions/core
npm package. We also had in the code the@actions/github
package but were never using it, so that has also been removed.The final change needed to make running the tests locally was to update the
npm run build:test
command to look for thejs-compute-runtime
cli within./target/release/
.To run the integration tests locally we can now do this:
cargo build --release && node .github/actions/compute-sdk-test/main.js
Note: During the combining of the different repositories we brought in a git pre-commit hook which is running a code-formatter on any modified files, this is why the commits contain lots of format changes.