BC46 / freelancer-hd-edition

Freelancer: HD Edition is a mod that aims to improve every aspect of the game Freelancer (2003) while keeping the look and feel as close to vanilla as possible.
https://www.moddb.com/mods/freelancer-hd-edition
161 stars 14 forks source link

Add CI job that will download the latest copy of FLHook #154

Closed oliverpechey closed 1 year ago

oliverpechey commented 1 year ago

This CI job will fetch the latest version of FLHook (if there is a new copy) when the main branch is updated.

As this modifies a file in the workflows folder, it will need a Personal Access Token from someone with write access to the repo.

Create the token here: https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token

Make sure to give it the "workflows" permission.

Then in the repo, create a repository secret called "PAT" with the token as the value.

This is needs testing before accepting the PR

  1. Create a new branch based off this branch.
  2. Edit the main.yml file to so that branch triggers the CI
  3. It should add FLHook to that branch.
  4. Clone the branch locally, copy and paste over a Freelancer install (should be a good enough test to skip the installer)
  5. Run FLServer.exe, check FLHook starts
  6. FLHook should start with all plugins with all default settings. We need to decide whether this is appropriate, or whether the CI should only install the commonly used plugins