Skip to content

Commit 4fdd963

Browse files
committed
chore: update workflow
1 parent 06a280e commit 4fdd963

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
tag: ${{ steps.release.outputs.new_release_git_tag }}
2626
steps:
2727
- name: 🚚 Checkout (${{ github.ref_name }})
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2929

3030
- name: 🔖 Run semantic release
3131
uses: cycjimmy/semantic-release-action@v4

.github/workflows/test-urp.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
# MINIMUM_VERSION: The minimum version of Unity.
1010
MINIMUM_VERSION: 6000.0
1111
# EXCLUDE_FILTER: The excluded versions of Unity.
12-
EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.2|2023.3)"
12+
EXCLUDE_FILTER: "(2017|2018)"
1313
PROJECT_PATH: UIEffectURP
1414

1515
on:
@@ -46,7 +46,7 @@ jobs:
4646
id: setup
4747
run: |
4848
echo "==== Target Unity Versions ===="
49-
LATEST_VERSIONS=`npx unity-changeset list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all`
49+
LATEST_VERSIONS=`npx unity-changeset@latest list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all`
5050
if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then
5151
ADDITIONAL_VERSIONS=`npx unity-changeset list --versions --grep '0f' --min ${MINIMUM_VERSION} --json`
5252
else
@@ -72,11 +72,11 @@ jobs:
7272
steps:
7373
- name: 🚚 Checkout ($${{ github.ref }})
7474
if: github.event_name == 'push'
75-
uses: actions/checkout@v4
75+
uses: actions/checkout@v5
7676

7777
- name: 🚚 Checkout pull request (pull_request_target)
7878
if: github.event_name == 'pull_request_target'
79-
uses: actions/checkout@v4
79+
uses: actions/checkout@v5
8080
with:
8181
ref: ${{ github.event.pull_request.head.sha }}
8282
fetch-depth: 0
@@ -86,19 +86,20 @@ jobs:
8686
run: |
8787
git config user.name "GitHub Actions"
8888
git config user.email "actions@github.com"
89-
git merge origin/${{ github.event.pull_request.base.ref }} --no-edit
89+
git rebase ${{ github.event.pull_request.base.sha }}
90+
git log --oneline -n 10
9091
9192
- name: 📥 Cache library
9293
uses: actions/cache@v4
9394
with:
94-
path: Library
95-
key: Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
95+
path: ${{ env.PROJECT_PATH }}/Library
96+
key: ${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
9697
restore-keys: |
97-
Library-${{ matrix.unityVersion }}-
98-
Library-
98+
${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-
99+
${{ env.PROJECT_PATH }}-Library-
99100
100101
- name: 🛠️ Build Unity Project (Test)
101-
uses: game-ci/unity-builder@v4
102+
uses: game-ci/unity-builder@main
102103
timeout-minutes: 45
103104
with:
104105
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ run-name: 🧪 Test (${{ github.event.pull_request.title || github.ref_name }})
77

88
env:
99
# MINIMUM_VERSION: The minimum version of Unity.
10-
MINIMUM_VERSION: 2021.3
10+
MINIMUM_VERSION: 2020.3
1111
# EXCLUDE_FILTER: The excluded versions of Unity.
12-
EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.2|2023.3)"
12+
EXCLUDE_FILTER: "(2017|2018|2023.3)"
1313
PROJECT_PATH: .
1414

1515
on:
@@ -46,7 +46,7 @@ jobs:
4646
id: setup
4747
run: |
4848
echo "==== Target Unity Versions ===="
49-
LATEST_VERSIONS=`npx unity-changeset list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all`
49+
LATEST_VERSIONS=`npx unity-changeset@latest list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all`
5050
if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then
5151
ADDITIONAL_VERSIONS=`npx unity-changeset list --versions --grep '0f' --min ${MINIMUM_VERSION} --json`
5252
else
@@ -72,11 +72,11 @@ jobs:
7272
steps:
7373
- name: 🚚 Checkout ($${{ github.ref }})
7474
if: github.event_name == 'push'
75-
uses: actions/checkout@v4
75+
uses: actions/checkout@v5
7676

7777
- name: 🚚 Checkout pull request (pull_request_target)
7878
if: github.event_name == 'pull_request_target'
79-
uses: actions/checkout@v4
79+
uses: actions/checkout@v5
8080
with:
8181
ref: ${{ github.event.pull_request.head.sha }}
8282
fetch-depth: 0
@@ -92,14 +92,14 @@ jobs:
9292
- name: 📥 Cache library
9393
uses: actions/cache@v4
9494
with:
95-
path: Library
96-
key: Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
95+
path: ${{ env.PROJECT_PATH }}/Library
96+
key: ${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
9797
restore-keys: |
98-
Library-${{ matrix.unityVersion }}-
99-
Library-
98+
${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-
99+
${{ env.PROJECT_PATH }}-Library-
100100
101101
- name: 🛠️ Build Unity Project (Test)
102-
uses: game-ci/unity-builder@v4
102+
uses: game-ci/unity-builder@main
103103
timeout-minutes: 45
104104
with:
105105
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}

0 commit comments

Comments
 (0)