mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2024-12-18 21:44:51 +01:00
ci: add Game CI (#21)
This commit is contained in:
parent
0956fca8b0
commit
19fd726099
@ -3,27 +3,35 @@
|
|||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
|
charset = utf-8
|
||||||
indent_style = space
|
indent_style = space
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
charset = utf-8
|
|
||||||
|
[*.{json,jsonc,asmdef}]
|
||||||
|
indent_size = 2
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.{yml,yaml,sh,puml,md}]
|
||||||
|
indent_size = 2
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
[*.{json,jsonc,yml,yaml,sh,puml,md}]
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[*.cs]
|
[*.cs]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
trim_trailing_whitespace = true
|
||||||
[*.{asset,meta,unity,scenetemplate}]
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = unset
|
|
||||||
insert_final_newline = unset
|
|
||||||
|
|
||||||
[*.sln]
|
[*.sln]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
||||||
[*.{pbxproj,plist,entitlements,xcsettings}]
|
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
|
||||||
indent_style = tab
|
indent_size = 2
|
||||||
|
|
||||||
[*.gantt]
|
[*.builds]
|
||||||
insert_final_newline = unset
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.{xml,stylecop,resx,ruleset}]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.{props,targets,config,nuspec}]
|
||||||
|
indent_size = 2
|
||||||
|
51
.github/workflows/ci.yml
vendored
51
.github/workflows/ci.yml
vendored
@ -19,3 +19,54 @@ jobs:
|
|||||||
- uses: "actions/checkout@v4.2.2"
|
- uses: "actions/checkout@v4.2.2"
|
||||||
- uses: "editorconfig-checker/action-editorconfig-checker@main"
|
- uses: "editorconfig-checker/action-editorconfig-checker@main"
|
||||||
- run: "editorconfig-checker"
|
- run: "editorconfig-checker"
|
||||||
|
|
||||||
|
test:
|
||||||
|
permissions:
|
||||||
|
checks: "write"
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- uses: "actions/checkout@v4.2.2"
|
||||||
|
with:
|
||||||
|
lfs: true
|
||||||
|
|
||||||
|
- uses: "actions/cache@v4.2.0"
|
||||||
|
with:
|
||||||
|
path: "Library"
|
||||||
|
key: "Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}"
|
||||||
|
restore-keys: |
|
||||||
|
"Library-"
|
||||||
|
|
||||||
|
- uses: "game-ci/unity-test-runner@v4.3.1"
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
with:
|
||||||
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- uses: "actions/checkout@v4.2.2"
|
||||||
|
with:
|
||||||
|
lfs: true
|
||||||
|
|
||||||
|
- uses: "actions/cache@v4.2.0"
|
||||||
|
with:
|
||||||
|
path: "Library"
|
||||||
|
key: "Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}"
|
||||||
|
restore-keys: |
|
||||||
|
"Library-"
|
||||||
|
|
||||||
|
- uses: "game-ci/unity-builder@v4.3.0"
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
with:
|
||||||
|
targetPlatform: "StandaloneLinux64"
|
||||||
|
|
||||||
|
# - uses: "actions/upload-artifact@v4.4.3"
|
||||||
|
# with:
|
||||||
|
# name: "Build"
|
||||||
|
# path: "build"
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -72,3 +72,7 @@ crashlytics-build.properties
|
|||||||
# Temporary auto-generated Android Assets
|
# Temporary auto-generated Android Assets
|
||||||
/[Aa]ssets/[Ss]treamingAssets/aa.meta
|
/[Aa]ssets/[Ss]treamingAssets/aa.meta
|
||||||
/[Aa]ssets/[Ss]treamingAssets/aa/*
|
/[Aa]ssets/[Ss]treamingAssets/aa/*
|
||||||
|
|
||||||
|
# Ignore temporaries from GameCI
|
||||||
|
/[Aa]rtifacts/
|
||||||
|
/[Cc]odeCoverage/
|
||||||
|
8
.vscode/extensions.json
vendored
8
.vscode/extensions.json
vendored
@ -1,3 +1,9 @@
|
|||||||
{
|
{
|
||||||
"recommendations": ["visualstudiotoolsforunity.vstuc"]
|
"recommendations": [
|
||||||
|
"editorconfig.editorconfig",
|
||||||
|
"jebbs.plantuml",
|
||||||
|
"visualstudiotoolsforunity.vstuc",
|
||||||
|
"ms-dotnettools.csharp",
|
||||||
|
"ms-dotnettools.csdevkit"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -1,3 +1,10 @@
|
|||||||
{
|
{
|
||||||
"dotnet.defaultSolution": "GeometryDash.sln"
|
"editor.bracketPairColorization.enabled": true,
|
||||||
|
"editor.wordWrap": "on",
|
||||||
|
"[csharp]": {
|
||||||
|
"editor.tabSize": 4,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.formatOnType": true
|
||||||
|
},
|
||||||
|
"omnisharp.useModernNet": false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user