-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port the CI/CD for the game-client to the FOSS repository
Main focus on this PR is to ensure we can deploy the game, run it and test it in PRs. Why? - We want to get a new stable release out ASAP. - We need to run our unit tests on the app. - We would like to have a client build per change to the app or engine side for testing in PRs. - It will let a dev try out changes in PRs easily. - We had to refactor to use the mono repository as swapping was non trivial due to structure changes. - Engine binary is properly locked to the submodule commit version - meaning we can update the engine in the repo, and try it out before we make it live. Changes: - Updated GUT. - Refactored the way we ingest engine builds since we don't want to make many edits to the godot fork with our CICD. - We now build engine binaries for each client version if there is an engine change in the source code or if the app code changes. - We pull our engine binary from GH artefacts but they won't be expired on us during the build process so this prevents issues with GH retention or hitting size constraints. - We can run our unit tests again, with an asterisk, that some had to be disabled due to missing assets that we didn't have a public redistribution license for, this can be re-enabled once tests fixed. - We will use this layout for deployment as it should be more efficient. -Swapped to GH composite actions so we can execute another workflow file and ensure the engine build is in a good state before starting the builds. - Fixed various double zipping bugs. -Renamed client binary to windows-client, macos-client, and linux-client.
- Loading branch information
1 parent
c24b552
commit 534d4df
Showing
31 changed files
with
585 additions
and
711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 📈 Bump Version (mirror-web-server) | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'dev' | ||
paths: | ||
- mirror-web-server/** | ||
|
||
jobs: | ||
bump-version: | ||
name: 'Upgrade version' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: 'cat package.json' | ||
run: cat ./package.json | ||
|
||
- name: Automated Version Bump | ||
id: version_bump | ||
uses: 'phips28/gh-action-bump-version@master' | ||
with: | ||
tag-prefix: 'v' | ||
major-wording: 'release-major' | ||
minor-wording: 'release-minor' | ||
# # defaults to a patch bump. | ||
rc-wording: 'rc' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PACKAGEJSON_DIR: ./mirror-web-server | ||
|
||
- name: cat package.json | ||
run: cat ./package.json | ||
|
||
- name: Output Step | ||
env: | ||
NEW_TAG: ${{ steps.version_bump.outputs.newTag }} | ||
run: echo "new tag $NEW_TAG" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.