From 4fdd9636faa3e6316fbc194a6749eb19897e1109 Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Wed, 15 Oct 2025 17:28:13 +0900 Subject: [PATCH] chore: update workflow --- .github/workflows/release.yml | 2 +- .github/workflows/test-urp.yml | 21 +++++++++++---------- .github/workflows/test.yml | 20 ++++++++++---------- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b97d60..7128b8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: tag: ${{ steps.release.outputs.new_release_git_tag }} steps: - name: ๐Ÿšš Checkout (${{ github.ref_name }}) - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: ๐Ÿ”– Run semantic release uses: cycjimmy/semantic-release-action@v4 diff --git a/.github/workflows/test-urp.yml b/.github/workflows/test-urp.yml index 6a7318f..af4d50f 100644 --- a/.github/workflows/test-urp.yml +++ b/.github/workflows/test-urp.yml @@ -9,7 +9,7 @@ env: # MINIMUM_VERSION: The minimum version of Unity. MINIMUM_VERSION: 6000.0 # EXCLUDE_FILTER: The excluded versions of Unity. - EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.2|2023.3)" + EXCLUDE_FILTER: "(2017|2018)" PROJECT_PATH: UIEffectURP on: @@ -46,7 +46,7 @@ jobs: id: setup run: | echo "==== Target Unity Versions ====" - LATEST_VERSIONS=`npx unity-changeset list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all` + LATEST_VERSIONS=`npx unity-changeset@latest list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all` if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then ADDITIONAL_VERSIONS=`npx unity-changeset list --versions --grep '0f' --min ${MINIMUM_VERSION} --json` else @@ -72,11 +72,11 @@ jobs: steps: - name: ๐Ÿšš Checkout ($${{ github.ref }}) if: github.event_name == 'push' - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: ๐Ÿšš Checkout pull request (pull_request_target) if: github.event_name == 'pull_request_target' - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 @@ -86,19 +86,20 @@ jobs: run: | git config user.name "GitHub Actions" git config user.email "actions@github.com" - git merge origin/${{ github.event.pull_request.base.ref }} --no-edit + git rebase ${{ github.event.pull_request.base.sha }} + git log --oneline -n 10 - name: ๐Ÿ“ฅ Cache library uses: actions/cache@v4 with: - path: Library - key: Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }} + path: ${{ env.PROJECT_PATH }}/Library + key: ${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }} restore-keys: | - Library-${{ matrix.unityVersion }}- - Library- + ${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}- + ${{ env.PROJECT_PATH }}-Library- - name: ๐Ÿ› ๏ธ Build Unity Project (Test) - uses: game-ci/unity-builder@v4 + uses: game-ci/unity-builder@main timeout-minutes: 45 with: customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a43963..19915f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,9 +7,9 @@ run-name: ๐Ÿงช Test (${{ github.event.pull_request.title || github.ref_name }}) env: # MINIMUM_VERSION: The minimum version of Unity. - MINIMUM_VERSION: 2021.3 + MINIMUM_VERSION: 2020.3 # EXCLUDE_FILTER: The excluded versions of Unity. - EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.2|2023.3)" + EXCLUDE_FILTER: "(2017|2018|2023.3)" PROJECT_PATH: . on: @@ -46,7 +46,7 @@ jobs: id: setup run: | echo "==== Target Unity Versions ====" - LATEST_VERSIONS=`npx unity-changeset list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all` + LATEST_VERSIONS=`npx unity-changeset@latest list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all` if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then ADDITIONAL_VERSIONS=`npx unity-changeset list --versions --grep '0f' --min ${MINIMUM_VERSION} --json` else @@ -72,11 +72,11 @@ jobs: steps: - name: ๐Ÿšš Checkout ($${{ github.ref }}) if: github.event_name == 'push' - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: ๐Ÿšš Checkout pull request (pull_request_target) if: github.event_name == 'pull_request_target' - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 @@ -92,14 +92,14 @@ jobs: - name: ๐Ÿ“ฅ Cache library uses: actions/cache@v4 with: - path: Library - key: Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }} + path: ${{ env.PROJECT_PATH }}/Library + key: ${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }} restore-keys: | - Library-${{ matrix.unityVersion }}- - Library- + ${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}- + ${{ env.PROJECT_PATH }}-Library- - name: ๐Ÿ› ๏ธ Build Unity Project (Test) - uses: game-ci/unity-builder@v4 + uses: game-ci/unity-builder@main timeout-minutes: 45 with: customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}