Skip to content

Update Gradle build to download integration tests - #114

Merged
andrewmwells-amazon merged 3 commits into
cedar-policy:mainfrom
exceptionfactory:download-integration-tests-1
Mar 25, 2024
Merged

Update Gradle build to download integration tests#114
andrewmwells-amazon merged 3 commits into
cedar-policy:mainfrom
exceptionfactory:download-integration-tests-1

Conversation

@exceptionfactory

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

This pull request updates the Gradle configuration to download the main branch of the Cedar repository, incorporating integration testing in the standard build. The gradle-download-task handles the HTTP request to the GitHub URL, downloading the Zip archive of the Cedar repository main branch.

Instead of setting the integration tests path from an environment variable, the Gradle tasks extract the Cedar repository archive to the build test resources directory. This approach makes the integration test corpus available as a class path resource. Updates to the SharedIntegrationTests class resolve the directory from the class path location.

Additional changes include updating the continuous integration workflow to run on both Ubuntu Linux and macOS 14. The macOS 14 runner uses AArch64 architecture. The updated workflow installs Zig using the platform-specific package manager, and also includes the setup-java action to provide a consistent vendor and version of the JDK.

- Added macOS to GitHub CI workflow
Signed-off-by: David Handermann <exceptionfactory@apache.org>

@khietakhieta left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This seems like a good change to me. Can you also update the README to remove the "Integration Testing" section?

Signed-off-by: David Handermann <exceptionfactory@apache.org>
Signed-off-by: David Handermann <exceptionfactory@apache.org>
@exceptionfactory

Copy link
Copy Markdown
ContributorAuthor

Thanks for the review @khieta! I removed the Integration Testing section and also updated the main project README.md with simplified instructions for getting started.

@andrewmwells-amazonandrewmwells-amazon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks for the PR!

@andrewmwells-amazon
andrewmwells-amazon merged commit a4ae0e7 into cedar-policy:mainMar 25, 2024
khieta pushed a commit that referenced this pull request Mar 25, 2024
Signed-off-by: David Handermann <exceptionfactory@apache.org>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@exceptionfactory@khieta@andrewmwells-amazon