You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test your changes before raising a Pull Request to merge your changes. In order to set things up for testing do the following:
15
+
You must test your changes before submitting a PR.
18
16
19
-
1. Set `$env:CHOCO_QSG_DEVELOP = $true`
20
-
1. The first step of the Guide will need amended to fetch from the `develop` branch:
17
+
You should test on a clean, supported operating system.
18
+
19
+
> NB: To save time in repeated testing from a clean environment, you can run the OfflineInstallPreparation script in your repository and copy the files directory before copying.
20
+
21
+
To test the quickstart environment:
22
+
23
+
1. Copy the repository directory over to `C:\choco-setup\files\` on the test machine. You do not need to copy the `.git` directory.
24
+
1. Open an elevated Windows PowerShell console.
25
+
1. Run `C:\choco-setup\files\Start-C4bSetup.ps1`, and continue through the guide steps as detailed in `README.md`.
26
+
1. Run `C:\choco-setup\files\Start-C4bVerification.ps1` and check that all tests pass.
27
+
28
+
## Testing a PR
29
+
30
+
Changes in a PR must be tested before merging. In order to set things up for testing do the following in an elevated Windows PowerShell terminal:
31
+
32
+
1. Set `$env:CHOCO_QSG_BRANCH` to the PR ID or Branch Name to download.
33
+
1. Run Quickstart Guide as documented, in the same session.
34
+
35
+
Example:
21
36
22
37
```powershell
38
+
$env:CHOCO_QSG_BRANCH = "< Insert PR ID or Upstream BranchName Here >"
1. Perform each step of the Quickstart Guide, and make sure the changes you have attempted to make work appropriately.
46
+
1. Run `Start-C4bVerification.ps1` and check that all tests pass.
32
47
1. If everything looks OK, push your branch and create your Pull Request.
33
48
34
-
## SSL Certificates for testing
49
+
## Creating a PR
50
+
51
+
Push your branch to a fork or repository, and create a new PR [here](https://github.com/chocolatey/choco-quickstart-scripts/compare).
52
+
53
+
You should fill out the issue template as much as possible.
35
54
36
-
Reach out to Stephen, and he can generate a Let's Encrypt certificate for you.
55
+
### Rebasing Your Branch
56
+
57
+
If something else has been merged since you created your branch, you should rebase your branch onto the new tip of `main`. If you'd already pushed the branch, you may need to force-push the new history over the upstream version. You can do this as follows:
0 commit comments