Testing Pull Requests - RST
Testing Pull Requests - RST
_doc_testing_pull_requests:
You can download pull request builds from GitHub Actions. Since only signed in
users may download builds directly from GitHub Actions, the procedure varies
depending on whether you have a GitHub account or not.
.. note::
Due to a GitHub Actions limitation, builds are only available for 90 days
after the pull request was last updated. If you still wish to try a
pull request locally, you can
:ref:`compile the pull request branch from source
<doc_testing_pull_requests_compile>`
instead.
- Open the pull request page. Click the **Checks** tab near the top of the page:
.. image:: img/testing_pull_requests_access_checks.webp
.. image:: img/testing_pull_requests_checks_artifacts.webp
- In the dropdown, click the artifact's name to download it. Remember to scroll
if you cannot see the name of the platform you're looking for:
.. image:: img/testing_pull_requests_checks_artifacts_list.webp
- Open the pull request page. Click the *fork*'s branch name near the top of the
page:
.. image:: img/testing_pull_requests_access_fork.png
- Now that you are on the fork's branch page, click the ``.github`` folder at the
top of the file list.
Then, click on the ``workflows`` folder (which is inside the ``.github`` folder).
Click the workflow file for the platform you wish to download artifacts for.
*After* clicking on the file (which opens the file view), copy the page URL from
your browser's address bar.
- Open the `nightly.link <https://nightly.link>`__ website and paste the URL you
just copied
into the text field located below the heading **Paste a GitHub link, get a
nightly.link!**.
After pasting the URL, click **Get links** on the right.
If the format of the URL you pasted is correct, you should be presented
with a page like this:
.. image:: img/testing_pull_requests_nightly_link.png
.. _doc_testing_pull_requests_compile:
This approach may be needed for pull requests that were last updated more than
90 days ago, or to test on platforms and configurations that are not supported
by Godot's GitHub Actions setup.
- Open the pull request page. Click the *fork*'s branch name near the top of the
page:
.. image:: img/testing_pull_requests_access_fork.png
- Now that you are on the fork's branch page, click the green **Code** button on
the right of the page
then choose **Download ZIP** in the dropdown:
.. image:: img/testing_pull_requests_fork_zip.png
- Extract the ZIP archive and follow the :ref:`compiling <toc-devel-compiling>`
instructions
for your operating system.
Alternatively, you can checkout the pull request directly with git:
- Open the pull request page. Note the pull request *number* (``PR_NUMBER``), and
the *branch name*
(``BRANCH_NAME``), but without the user name.
.. image:: img/testing_pull_requests_command_line_checkout.webp
::
So for the pull request above, the actual command will be:
::
::