Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
16 changes: 8 additions & 8 deletions .github/workflows/addressables-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
build_timestamp: ${{ steps.timestamp.outputs.value }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
sparse-checkout: .github

Expand All @@ -87,7 +87,7 @@ jobs:
name: Build Addressables (${{ matrix.platform }})
runs-on: [self-hosted, linux, unity, docker]
needs: load-config
timeout-minutes: 7200
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
Expand All @@ -99,7 +99,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
lfs: false
clean: false
Expand Down Expand Up @@ -274,23 +274,23 @@ jobs:
echo "File count: $(echo "$FILES" | wc -l)"

- name: Upload Addressables artifact (ServerData)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: Addressables-${{ matrix.platform }}-${{ env.BUILD_TIMESTAMP }}
path: ${{ env.UNITY_PROJECT_PATH }}/ServerData/${{ matrix.platform }}
retention-days: 7
if-no-files-found: error

- name: Upload LocalBundles artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: LocalBundles-${{ matrix.platform }}-${{ env.BUILD_TIMESTAMP }}
path: ${{ github.workspace }}/LocalBundles-${{ matrix.platform }}
retention-days: 7
if-no-files-found: error

- name: Upload build log
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: Addressables-Log-${{ matrix.platform }}-${{ env.BUILD_TIMESTAMP }}
Expand All @@ -314,13 +314,13 @@ jobs:

steps:
- name: Download Addressables artifact (ServerData)
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: Addressables-${{ matrix.platform }}-${{ env.BUILD_TIMESTAMP }}
path: ./ServerData/${{ matrix.platform }}

- name: Download LocalBundles artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: LocalBundles-${{ matrix.platform }}-${{ env.BUILD_TIMESTAMP }}
path: ./LocalBundles/${{ matrix.platform }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- name: Check line endings (LF only)
run: |
Expand Down Expand Up @@ -95,10 +95,10 @@ jobs:
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: '9.0.x'

Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
lfs: false
clean: false
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
echo "::endgroup::"

- name: Upload analyzer results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: Analyzer-Results
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
has_shared_changes: ${{ steps.count.outputs.has_shared }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0

Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
pull-requests: write
steps:
- name: Post checklist comment
uses: actions/github-script@v7
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
with:
script: |
const hasUnity = '${{ needs.analyze-changes.outputs.has_unity_changes }}' === 'true';
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
pull-requests: write
steps:
- name: Add project labels
uses: actions/github-script@v7
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
with:
script: |
const hasUnity = '${{ needs.analyze-changes.outputs.has_unity_changes }}' === 'true';
Expand Down
42 changes: 29 additions & 13 deletions .github/workflows/server-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,21 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Cache NuGet packages
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/Directory.Packages.props') }}
restore-keys: |
${{ runner.os }}-nuget-

- name: Restore dependencies
run: |
dotnet restore test/Game.Server.Tests/Game.Server.Tests.csproj
Expand Down Expand Up @@ -76,15 +84,15 @@ jobs:
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover

- name: Upload test results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: Unit-Test-Results
path: TestResults/
retention-days: 7

- name: Publish test results
uses: dorny/test-reporter@v2
uses: dorny/test-reporter@b082adf0eced0765477756c2a610396589b8c637 # v2.5.0
if: always()
with:
name: Unit Test Report
Expand All @@ -103,13 +111,21 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Cache NuGet packages
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/Directory.Packages.props') }}
restore-keys: |
${{ runner.os }}-nuget-

- name: Restore dependencies
run: dotnet restore test/Game.Server.Tests/Game.Server.Tests.csproj

Expand All @@ -132,15 +148,15 @@ jobs:
DOCKER_HOST: unix:///var/run/docker.sock

- name: Upload test results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: Integration-Test-Results
path: TestResults/
retention-days: 7

- name: Publish test results
uses: dorny/test-reporter@v2
uses: dorny/test-reporter@b082adf0eced0765477756c2a610396589b8c637 # v2.5.0
if: always()
with:
name: Integration Test Report
Expand All @@ -158,24 +174,24 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- name: Download unit test coverage
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: Unit-Test-Results
path: TestResults/Unit
continue-on-error: true

- name: Download integration test coverage
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: Integration-Test-Results
path: TestResults/Integration
continue-on-error: true

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

Expand Down Expand Up @@ -204,7 +220,7 @@ jobs:
fi

- name: Upload coverage report
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: Coverage-Report
Expand Down
Loading
Loading