You may find it helpful to set up your own test repo and run the integration tests on your local machine. Here are the steps:
-
Set up a test repository, i.e. create a new public GitHub repository for testing purposes. For this example, suppose that this repo is called
MY_GITHUB_USERNAME/MY_REGISTRYCI_TEST_REPO
. -
Make sure that there is some content in the
master
branch ofMY_GITHUB_USERNAME/MY_REGISTRYCI_TEST_REPO
. Perhaps just aREADME.md
file with a single word or something like that. -
Set the environment variable:
export AUTOMERGE_INTEGRATION_TEST_REPO="MY_GITHUB_USERNAME/MY_REGISTRYCI_TEST_REPO"
-
Set the environment variable:
export AUTOMERGE_RUN_INTEGRATION_TESTS="true"
-
Go to https://github.com/settings/tokens and generate a new GitHub personal access token. The token only needs the
repo
andpublic_repo
permissions - you can uncheck all other permissions. Save that token somewhere - I recommend saving the token in a secure location like a password manager. -
Set the environment variable containing your GitHub personal access token:
export BCBI_TEST_USER_GITHUB_TOKEN="YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
-
Run the package tests
Pkg.test("RegistryCI")
. Watch the logs - you should see the messageRunning the AutoMerge.jl integration tests
, which confirms that you are running the integration tests.