-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
152 additions
and
101 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,6 @@ | ||
# This is a comment. | ||
# Each line is a file pattern followed by one or more owners. | ||
# https://docs.github.com/ja/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
# Default owners | ||
* @mob-sakai |
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 |
---|---|---|
@@ -1,9 +1,37 @@ | ||
--- | ||
name: Pull Request | ||
about: Create a pull request | ||
title: '' | ||
assignees: mob-sakai | ||
|
||
--- | ||
# Pull Request Template | ||
|
||
**NOTE: Create a pull request to merge into `develop` branch** | ||
## Description | ||
|
||
- Please include a summary of the change and which issue is fixed. | ||
- Please also include relevant motivation and context. | ||
- List any dependencies that are required for this change. | ||
|
||
Fixes #{issue_number} | ||
|
||
## Type of change | ||
|
||
Please write the commit message in the format corresponding to the change type. | ||
Please see [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) for more information. | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] Update documentations | ||
- [ ] Others (refactoring, style changes, etc.) | ||
|
||
## Test environment | ||
|
||
- Platform: [e.g. Editor(Windows/Mac), Standalone(Windows/Mac), iOS, Android, WebGL] | ||
- Unity version: [e.g. 2022.2.0f1] | ||
- Build options: [e.g. IL2CPP, .Net 4.x, URP/HDRP] | ||
|
||
## Checklist | ||
|
||
- [ ] This pull request is for merging into the `develop` branch | ||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] I have checked my code and corrected any misspellings |
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,28 @@ | ||
name: 🚀 Deploy with Zip | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
zip: | ||
description: 'The url to the zip file' | ||
required: true | ||
|
||
jobs: | ||
deploy: | ||
name: 🚀 Deploy | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pages: write | ||
id-token: write | ||
steps: | ||
- name: 📦 Download zip file To '_site' | ||
run: | | ||
curl -L ${{ github.event.inputs.zip }} -o _site.zip | ||
unzip _site.zip -d _site | ||
find _site -name __MACOSX | xargs rm -rf | ||
- name: 📦 Upload '_site' | ||
uses: actions/upload-pages-artifact@v3 | ||
|
||
- name: 🚀 Deploy To GitHub Pages | ||
uses: actions/deploy-pages@v4 |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# UNITY_EMAIL: Unity user email to login | ||
# UNITY_PASSWORD: Unity user password to login | ||
name: 🧪 Test URP | ||
run-name: 🧪 Test URP (${{ github.ref_name }}) | ||
run-name: 🧪 Test URP (${{ github.event.pull_request.title || github.ref_name }}) | ||
|
||
env: | ||
# MINIMUM_VERSION: The minimum version of Unity. | ||
|
@@ -25,11 +25,14 @@ on: | |
tags: | ||
- "!*" | ||
paths-ignore: | ||
- "*.md" | ||
pull_request: | ||
- "**.md" | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
paths-ignore: | ||
- "**.md" | ||
|
||
jobs: | ||
setup: | ||
|
@@ -56,10 +59,6 @@ jobs: | |
test: | ||
name: 🧪 Run tests | ||
runs-on: ubuntu-latest | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
permissions: | ||
checks: write | ||
contents: read | ||
|
@@ -70,14 +69,29 @@ jobs: | |
matrix: | ||
unityVersion: ${{ fromJson(needs.setup.outputs.unityVersions) }} | ||
steps: | ||
- name: 🚚 Checkout | ||
- name: 🚚 Checkout ($${{ github.ref }}) | ||
if: github.event_name == 'push' | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🚚 Checkout pull request (pull_request_target) | ||
if: github.event_name == 'pull_request_target' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
|
||
- name: 🚚 Marge pull request (pull_request_target) | ||
if: github.event_name == 'pull_request_target' | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git merge origin/${{ github.event.pull_request.base.ref }} --no-edit | ||
- name: 📥 Cache library | ||
uses: actions/cache@v4 | ||
with: | ||
path: UniversalTestProject/Library | ||
key: UniversalTestProject-Library-${{ matrix.unityVersion }}-${{ github.sha }} | ||
key: UniversalTestProject-Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }} | ||
restore-keys: | | ||
UniversalTestProject-Library-${{ matrix.unityVersion }}- | ||
UniversalTestProject-Library- | ||
|
@@ -90,4 +104,19 @@ jobs: | |
targetPlatform: StandaloneLinux64 | ||
allowDirtyBuild: true | ||
customParameters: -nographics | ||
projectPath: UniversalTestProject | ||
projectPath: UniversalTestProject | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
|
||
# - name: 🧪 Run tests | ||
# uses: game-ci/unity-test-runner@v4 | ||
# timeout-minutes: 45 | ||
# with: | ||
# customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }} | ||
# # unityVersion: ${{ matrix.unityVersion }} | ||
# customParameters: -nographics | ||
# checkName: ${{ matrix.unityVersion }} Test Results | ||
# githubToken: ${{ github.token }} | ||
# coverageOptions: "dontClear;generateHtmlReport;generateBadgeReport;pathFilters:+**/Packages/src/**;assemblyFilters:+<packages>,-*.Editor,-*.Test" |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# UNITY_EMAIL: Unity user email to login | ||
# UNITY_PASSWORD: Unity user password to login | ||
name: 🧪 Test | ||
run-name: 🧪 Test (${{ github.ref_name }}) | ||
run-name: 🧪 Test (${{ github.event.pull_request.title || github.ref_name }}) | ||
|
||
env: | ||
# MINIMUM_VERSION: The minimum version of Unity. | ||
|
@@ -13,7 +13,7 @@ env: | |
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
inputs: | ||
usePeriodVersions: | ||
description: 'Use the period versions (.0f1, .10f1, 20f1, ...).' | ||
required: false | ||
|
@@ -22,15 +22,17 @@ on: | |
branches: | ||
- develop | ||
- develop-preview | ||
- develop-1.x | ||
tags: | ||
- "!*" | ||
paths-ignore: | ||
- "*.md" | ||
pull_request: | ||
- "**.md" | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
paths-ignore: | ||
- "**.md" | ||
|
||
jobs: | ||
setup: | ||
|
@@ -57,10 +59,6 @@ jobs: | |
test: | ||
name: 🧪 Run tests | ||
runs-on: ubuntu-latest | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
permissions: | ||
checks: write | ||
contents: read | ||
|
@@ -71,34 +69,53 @@ jobs: | |
matrix: | ||
unityVersion: ${{ fromJson(needs.setup.outputs.unityVersions) }} | ||
steps: | ||
- name: 🚚 Checkout | ||
- name: 🚚 Checkout ($${{ github.ref }}) | ||
if: github.event_name == 'push' | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🚚 Checkout pull request (pull_request_target) | ||
if: github.event_name == 'pull_request_target' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
|
||
- name: 🚚 Marge pull request (pull_request_target) | ||
if: github.event_name == 'pull_request_target' | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git merge origin/${{ github.event.pull_request.base.ref }} --no-edit | ||
- name: 📥 Cache library | ||
uses: actions/cache@v4 | ||
with: | ||
path: Library | ||
key: Library-${{ matrix.unityVersion }}-${{ github.sha }} | ||
key: Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }} | ||
restore-keys: | | ||
Library-${{ matrix.unityVersion }}- | ||
Library- | ||
- name: 🛠️ Build Unity Project | ||
- name: 🛠️ Build Unity Project (Test) | ||
uses: game-ci/unity-builder@v4 | ||
timeout-minutes: 45 | ||
with: | ||
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }} | ||
targetPlatform: StandaloneLinux64 | ||
allowDirtyBuild: true | ||
customParameters: -nographics | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
|
||
- name: 🧪 Run tests | ||
uses: game-ci/unity-test-runner@v4 | ||
timeout-minutes: 45 | ||
with: | ||
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }} | ||
# unityVersion: ${{ matrix.unityVersion }} | ||
customParameters: -nographics | ||
checkName: ${{ matrix.unityVersion }} Test Results | ||
githubToken: ${{ github.token }} | ||
coverageOptions: "dontClear;generateHtmlReport;generateBadgeReport;pathFilters:+**/Packages/src/**;assemblyFilters:+<packages>,-*.Editor,-*.Test" | ||
# - name: 🧪 Run tests | ||
# uses: game-ci/unity-test-runner@v4 | ||
# timeout-minutes: 45 | ||
# with: | ||
# customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }} | ||
# # unityVersion: ${{ matrix.unityVersion }} | ||
# customParameters: -nographics | ||
# checkName: ${{ matrix.unityVersion }} Test Results | ||
# githubToken: ${{ github.token }} | ||
# coverageOptions: "dontClear;generateHtmlReport;generateBadgeReport;pathFilters:+**/Packages/src/**;assemblyFilters:+<packages>,-*.Editor,-*.Test" |