mirror of
https://github.com/versity/versitygw.git
synced 2026-01-09 04:53:10 +00:00
Command-Line Tests
Instructions:
- Build the
versitygwbinary. - Create a local AWS profile for connection to S3, and add the
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYvalues above to the profile. - Create an environment file (
.env) similar to the ones in this folder, setting theAWS_PROFILEparameter to the name of the profile you created. - In the root repo folder, run with
VERSITYGW_TEST_ENV=<env file> tests/s3_bucket_tests.sh. - If running/testing the GitHub workflow locally, create a
.secretsfile, and set theAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYparameters here to the values of your AWS S3 IAM account.
AWS_ACCESS_KEY_ID=<key_id>
AWS_SECRET_ACCESS_KEY=<secret_key>
- To run the workflow locally, install act and run with
act -W .github/workflows/system.yml.