- If the existing tests do not already cover your changes, please add tests.
- Pull requests should be created on the dev branch.
- Please run
go fmt ./...
for formatting the code before submitting the pull request.
Make sure Go is installed by running:
go version
Clone the sources and CD to the root directory of the project:
git clone https://github.com/jfrog/frogbot.git
cd frogbot
Build the sources as follows:
On Unix based systems run:
./buildscripts/build.sh
On Windows run:
.\buildscripts\build.bat
Once completed, you'll find the frogbot executable at the current directory.
Before running the tests, generate mocks by running the following command from within the root directory of the project:
go generate ./...
To run the tests, follow these steps:
- Set the
JF_URL
&JF_ACCESS_TOKEN
environment variables with your JFrog platform credentials. - execute the following command:
go test -v ./...