Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
Import template files
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Jan 12, 2021
0 parents commit 3f434b7
Show file tree
Hide file tree
Showing 18 changed files with 857 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.

**Repro project**
It would be very helpful if you can produce a small project that reproduces the issue. Upload it to dropbox or google drive and attach the link to this issue.

**To Reproduce**
Steps to reproduce the behavior:
1. Open the attached project '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
* OS: \[e.g. Windows, MacOS\]
* Build target: \[e.g. Android, webgl, standalone, iOS\]
* Unity version: \[e.g. 2017.4]
* Mirror branch: \[e.g. master, 2018\]

**Additional context**
Add any other context about the problem here.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---

**Please explain the suggested feature in detail.**

**How exactly does this keep you from releasing your game right now?**

**Can you suggest a possible solution?**

**Additional context**
Add any other context or screenshots about the feature request here.
110 changes: 110 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: CI

on:
push:
paths-ignore:
- 'doc/**'
- '*.md'

jobs:
requestActivationFile:
runs-on: ubuntu-latest
if: false
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Request manual activation file
uses: MirrorNG/[email protected]
id: getManualLicenseFile
with:
entrypoint: /request_activation.sh

- name: Expose as artifact
uses: actions/upload-artifact@v1
with:
name: Manual Activation File
path: ${{ steps.getManualLicenseFile.outputs.filePath }}

CI:
name: Test
runs-on: ubuntu-latest
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
if: true
steps:

# Checkout repository (required to test local actions)
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Activate license
uses: MirrorNG/[email protected]
with:
entrypoint: /activate.sh

- name: Generate Solution
uses: MirrorNG/[email protected]
with:
# Arguments to pass to unity
args: -buildTarget StandaloneWindows64 -customBuildName MirrorNG -customBuildPath ./build/StandaloneWindows64 -projectPath . -executeMethod UnityEditor.SyncVS.SyncSolution -quit

# Configure test runner
- name: Run editor Tests
uses: MirrorNG/[email protected]
with:
args: -runTests -testPlatform editmode -testResults Tests/editmode-results.xml -enableCodeCoverage -coverageResultsPath Tests

- name: Run play Tests
uses: MirrorNG/[email protected]
with:
args: -runTests -testPlatform playmode -testResults Tests/playmode-results.xml -enableCodeCoverage -coverageResultsPath Tests

# Upload artifacts
- name: Archive test results
uses: actions/upload-artifact@v1
if: always()
with:
name: Test results
path: Tests

- name: Publish test results
uses: MirrorNG/[email protected]
if: always()
with:
path: "Tests/*.xml"
access-token: ${{ secrets.GITHUB_TOKEN }}

- name: Release
id: semantic
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/exec
@semantic-release/changelog
@semantic-release/git
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: SonarQube analysis
if: always()
uses: MirrorNG/[email protected]
with:
entrypoint: /sonar-scanner.sh
projectKey: ${{ secrets.SONAR_PROJECT_KEY }}
projectName: ${{ secrets.SONAR_PROJECT_NAME }}
sonarOrganisation: mirrorng
beginArguments: >-
/d:sonar.verbose="false"
${{ steps.semantic.outputs.new_release_published == 'true' && format('/v:{0}',steps.semantic.outputs.new_release_version) || '' }}
/d:sonar.cs.nunit.reportsPaths=Tests/editmode-results.xml,Tests/playmode-results.xml
/d:sonar.cs.opencover.reportsPaths=Tests/workspace-opencov/EditMode/TestCoverageResults_0000.xml,Tests/workspace-opencov/PlayMode/TestCoverageResults_0000.xml
env:
FrameworkPathOverride: /opt/Unity/Editor/Data/MonoBleedingEdge/
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


80 changes: 80 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Created by performance test
Assets/StreamingAssets/
Assets/StreamingAssets.meta
Assets/Resources
Assets/Resources.meta

# =============== #
# Unity generated #
# =============== #
Source/Temp/
Source/Library/

# ===================================== #
# Project specific #
# ===================================== #
Database.sqlite
Database/

# ===================================== #
# Visual Studio / MonoDevelop / Rider #
# ===================================== #
ExportedObj/
obj/
*.svd
*.userprefs
/*.csproj
Source/Assembly-CSharp.csproj
Source/Assembly-CSharp-Editor.csproj
Source/Assembly-CSharp-firstpass.csproj
Source/Source.sln
*.pidb
*.suo
/*.sln
*.user
*.unityproj
*.booproj
Output/
bin/
.vs/
.idea/
Mirror/packages
.mfractor

# Unity generated
Library
Temp
UnityPackageManager
CodeCoverage
Logs
Obj
*.mdb
*.mdb.meta

# generated by jekyll for documentation
docs/_site
docs/.bundle
docs/vendor
docs/.sass-cache
# ============ #
# OS generated #
# ============ #
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
/VisRepo.txt

.sonarqube
CodeCoverage
ProjectSettings
/Tests
Assets/Mirror/Samples
Assets/Mirror/Samples.meta

Builds/
InitTestScene*.unity.*
InitTestScene*.unity
18 changes: 18 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"plugins": [
"@semantic-release/github",
"@semantic-release/release-notes-generator",
"@semantic-release/commit-analyzer",
["@semantic-release/changelog", {
"changelogFile": "Assets/MyPlugin/CHANGELOG.md",
}],
["@semantic-release/npm", {
"npmPublish": false,
"pkgRoot": "Assets/MyPlugin"
}],
["@semantic-release/git", {
"assets": ["Assets/MyPlugin/package.json", "Assets/MyPlugin/CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
]
}
6 changes: 6 additions & 0 deletions .vsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Workload.ManagedGame"
]
}
Empty file added Assets/MyPlugin/CHANGELOG.md
Empty file.
21 changes: 21 additions & 0 deletions Assets/MyPlugin/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020, Paul Pacheco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
17 changes: 17 additions & 0 deletions Assets/MyPlugin/MyPlugin.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "MyPlugin",
"references": [
"GUID:f51ebe6a0ceec4240a699833d6309b23",
"GUID:2adcab1eb5bd5499a9969522e1b8dcb2",
"GUID:30817c1a0e6d646d99c048fc403f5979"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
1 change: 1 addition & 0 deletions Assets/MyPlugin/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Describe what your plugin does
Empty file added Assets/MyPlugin/Samples~/.keep
Empty file.
19 changes: 19 additions & 0 deletions Assets/MyPlugin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "com.mirrorng.myplugin",
"displayName": "MirrorNG MyPlugin",
"version": "1.0.0",
"unity": "2019.1",
"description": "A plugin for MirrorNG to do x",
"author": "Yaba Gaba",
"dependencies": {
"com.mirrorng.mirrorng": "61.0.0",
"com.cysharp.unitask": "2.0.36"
},
"samples": [
{
"displayName": "Example1",
"description": "Demonstrates how to make an example",
"path": "Samples~/Example1"
}
]
}
Empty file added Assets/Tests/.keep
Empty file.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020, Paul Pacheco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 3f434b7

Please sign in to comment.