From 91af06824ce93318fcb34ce44e492fa30e0ffde6 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 18 May 2024 23:42:17 -0700 Subject: [PATCH 1/6] ci: cherry pick action --- .github/workflows/test-runner_dispatch.yml | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/test-runner_dispatch.yml diff --git a/.github/workflows/test-runner_dispatch.yml b/.github/workflows/test-runner_dispatch.yml new file mode 100644 index 00000000..439881b1 --- /dev/null +++ b/.github/workflows/test-runner_dispatch.yml @@ -0,0 +1,57 @@ +name: Test Runner Custom Version + +on: + workflow_dispatch: + inputs: + unityVersion: + description: 'Unity version' + required: true + default: '2023.2.18f1' + +jobs: + test: + name: Test-${{ matrix.testMode }}-${{ matrix.unityVersion }} + runs-on: ubuntu-latest + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + testMode: editmode + unityVersion: ${{fromJson(github.event.inputs.unityVersion)}} + + steps: + #Test Checkout + - uses: actions/checkout@v4.1.4 + with: + lfs: true + + #Test Cache + - uses: actions/cache@v4.0.2 + with: + path: Library + key: Library-${{ matrix.unityVersion }} + restore-keys: + Library-${{ matrix.unityVersion }} + + #Test Runner + - uses: game-ci/unity-test-runner@v4.1.1 + id: tests + env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + with: + projectPath: ${{ matrix.projectPath }} + testMode: ${{ matrix.testMode }} + artifactsPath: ${{ matrix.testMode }}-artifacts + githubToken: ${{ secrets.GITHUB_TOKEN }} + checkName: Test results ${{ matrix.testMode }}-${{ matrix.unityVersion }} + unityVersion: ${{ matrix.unityVersion }} + customParameters: '-nographics' + + #Test Artifact + - uses: actions/upload-artifact@v4.3.3 + if: always() + with: + name: Test results for ${{ matrix.testMode }}-${{ matrix.unityVersion }} + path: ${{ steps.tests.outputs.artifactsPath }} \ No newline at end of file From 3d09be151b2e2b1e0ee2c424d6230c200e0d0883 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 18 May 2024 23:45:30 -0700 Subject: [PATCH 2/6] ci: fix formatting --- .github/workflows/test-runner_dispatch.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-runner_dispatch.yml b/.github/workflows/test-runner_dispatch.yml index 439881b1..1cb468da 100644 --- a/.github/workflows/test-runner_dispatch.yml +++ b/.github/workflows/test-runner_dispatch.yml @@ -16,8 +16,10 @@ jobs: strategy: fail-fast: false matrix: - testMode: editmode - unityVersion: ${{fromJson(github.event.inputs.unityVersion)}} + testMode: + - editmode + unityVersion: + - ${{fromJson(github.event.inputs.unityVersion)}} steps: #Test Checkout From f9ca59a695e03e9d7f846a52ba3d9718a5ca4ad5 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 18 May 2024 23:59:57 -0700 Subject: [PATCH 3/6] ci: fix removed parts in releasearc json. added example versions for manual runner --- .github/workflows/test-runner_dispatch.yml | 15 ++++++++++++++- .releaserc.json | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-runner_dispatch.yml b/.github/workflows/test-runner_dispatch.yml index 1cb468da..e15a3809 100644 --- a/.github/workflows/test-runner_dispatch.yml +++ b/.github/workflows/test-runner_dispatch.yml @@ -4,7 +4,20 @@ on: workflow_dispatch: inputs: unityVersion: - description: 'Unity version' + description: 'Unity version. Examples: + 2019.3.15f1 + 2019.4.40f1 + 2020.1.17f1 + 2020.2.7f1 + 2020.3.48f1 + 2021.1.28f1 + 2021.2.7f1 + 2021.3.37f1 + 2022.1.14f1 + 2022.2.7f1 + 2022.3.24f1 + 2023.1.7f1 + 2023.2.18f1' required: true default: '2023.2.18f1' diff --git a/.releaserc.json b/.releaserc.json index 96f4e969..be5440ff 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -7,7 +7,7 @@ "preset": "angular", "releaseRules": [ - { "type": "docs", "scope": "README", "release": "patch" }, + { "type": "docs", "scope": "README", "release": "patch" } ] } ], From 2c329a584b6c16e4fcc3cdf44d3b8a07031ee7dd Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 19 May 2024 00:02:46 -0700 Subject: [PATCH 4/6] ci: try fixing this --- .github/workflows/test-runner_dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-runner_dispatch.yml b/.github/workflows/test-runner_dispatch.yml index e15a3809..b052c56f 100644 --- a/.github/workflows/test-runner_dispatch.yml +++ b/.github/workflows/test-runner_dispatch.yml @@ -32,7 +32,7 @@ jobs: testMode: - editmode unityVersion: - - ${{fromJson(github.event.inputs.unityVersion)}} + - ${{ github.event.inputs.unityVersion }} steps: #Test Checkout From 606292cb6b1153d97ec4b7372fcb67092999e7fc Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 19 May 2024 00:05:24 -0700 Subject: [PATCH 5/6] ci: made fix to parsing error --- .github/workflows/test-runner_dispatch.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-runner_dispatch.yml b/.github/workflows/test-runner_dispatch.yml index b052c56f..1b3e75e7 100644 --- a/.github/workflows/test-runner_dispatch.yml +++ b/.github/workflows/test-runner_dispatch.yml @@ -29,10 +29,10 @@ jobs: strategy: fail-fast: false matrix: - testMode: - - editmode - unityVersion: - - ${{ github.event.inputs.unityVersion }} + testMode: + - editmode + unityVersion: + - ${{ github.event.inputs.unityVersion }} steps: #Test Checkout From 44a00b0f3dce61e6c32f93ca25fee5685d23f428 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 19 May 2024 00:10:54 -0700 Subject: [PATCH 6/6] ci: just make it test all unity versions manually --- .github/workflows/test-runner_dispatch.yml | 41 ++++++++++------------ 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/.github/workflows/test-runner_dispatch.yml b/.github/workflows/test-runner_dispatch.yml index 1b3e75e7..fa4cd50f 100644 --- a/.github/workflows/test-runner_dispatch.yml +++ b/.github/workflows/test-runner_dispatch.yml @@ -1,28 +1,10 @@ -name: Test Runner Custom Version +name: Test Runner More Versions on: workflow_dispatch: - inputs: - unityVersion: - description: 'Unity version. Examples: - 2019.3.15f1 - 2019.4.40f1 - 2020.1.17f1 - 2020.2.7f1 - 2020.3.48f1 - 2021.1.28f1 - 2021.2.7f1 - 2021.3.37f1 - 2022.1.14f1 - 2022.2.7f1 - 2022.3.24f1 - 2023.1.7f1 - 2023.2.18f1' - required: true - default: '2023.2.18f1' jobs: - test: + testMoreVersions: name: Test-${{ matrix.testMode }}-${{ matrix.unityVersion }} runs-on: ubuntu-latest timeout-minutes: 15 @@ -30,9 +12,22 @@ jobs: fail-fast: false matrix: testMode: + #- playmode - editmode unityVersion: - - ${{ github.event.inputs.unityVersion }} + - 2019.3.15f1 + - 2019.4.40f1 + - 2020.1.17f1 + - 2020.2.7f1 + - 2020.3.48f1 + - 2021.1.28f1 + - 2021.2.7f1 + - 2021.3.37f1 + - 2022.1.14f1 + - 2022.2.7f1 + - 2022.3.24f1 + - 2023.1.7f1 + - 2023.2.18f1 steps: #Test Checkout @@ -47,7 +42,7 @@ jobs: key: Library-${{ matrix.unityVersion }} restore-keys: Library-${{ matrix.unityVersion }} - + #Test Runner - uses: game-ci/unity-test-runner@v4.1.1 id: tests @@ -63,7 +58,7 @@ jobs: checkName: Test results ${{ matrix.testMode }}-${{ matrix.unityVersion }} unityVersion: ${{ matrix.unityVersion }} customParameters: '-nographics' - + #Test Artifact - uses: actions/upload-artifact@v4.3.3 if: always()