From 178d0f2ffe4cf7f6dd7129fcf7119471ede54352 Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:36:55 +0900 Subject: [PATCH] chore: update workflow --- .github/pull_request_template.md | 2 +- .github/workflows/deploy.yml | 2 +- .github/workflows/test.yml | 33 +++++++++++++++++--------------- 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 54b49da8..381c56f3 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -34,4 +34,4 @@ Please see [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/ - [ ] 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 \ No newline at end of file +- [ ] I have checked my code and corrected any misspellings diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 762c0505..46024173 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: zip: - description: 'The url to the zip file' + description: "The url to the zip file" required: true jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e62b8d4..9fb934da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,15 +9,15 @@ env: # MINIMUM_VERSION: The minimum version of Unity. MINIMUM_VERSION: 2020.3 # EXCLUDE_FILTER: The excluded versions of Unity. - EXCLUDE_FILTER: '(2020.2.0|2023.3)' + EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.3)" on: workflow_dispatch: - inputs: + inputs: usePeriodVersions: - description: 'Use the period versions (.0f1, .10f1, 20f1, ...).' + description: "Use the period versions (.0f1, .10f1, 20f1, ...)." required: false - default: 'true' + default: "true" push: branches: - develop @@ -86,7 +86,7 @@ jobs: git config user.name "GitHub Actions" git config user.email "actions@github.com" git merge origin/${{ github.event.pull_request.base.ref }} --no-edit - + - name: 📥 Cache library uses: actions/cache@v4 with: @@ -109,13 +109,16 @@ jobs: 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:+,-*.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 }} + env: + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}