From e88cabbd24feb7daeefbfc01957ed66a800b0db5 Mon Sep 17 00:00:00 2001 From: Dan Korostelev Date: Wed, 21 Feb 2024 14:29:19 +0100 Subject: [PATCH] update github actions --- .github/workflows/build.yml | 6 +++--- .github/workflows/docs.yml | 6 +++--- .github/workflows/test-unity.yml | 10 ++++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f03dad3..ef75b8f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: 6.0.x @@ -31,6 +31,6 @@ jobs: filename: coverage.cobertura.xml - name: Upload coverage to codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: files: ./coverage.cobertura.xml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d48a470..54efc36 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,9 +9,9 @@ jobs: build: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: 6.0.x - name: Setup DocFX @@ -24,4 +24,4 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: docs/_site \ No newline at end of file + publish_dir: docs/_site diff --git a/.github/workflows/test-unity.yml b/.github/workflows/test-unity.yml index ac9fcc6..ef3100a 100644 --- a/.github/workflows/test-unity.yml +++ b/.github/workflows/test-unity.yml @@ -7,14 +7,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: playground-unity/Library - key: playground-unity-Library + key: playground-unity-Library-${{ hashFiles('playground-unity/Assets/**', 'playground-unity/Packages/**', 'playground-unity/ProjectSettings/**') }} + restore-keys: | + playground-unity-Library- - - uses: game-ci/unity-test-runner@v2 + - uses: game-ci/unity-test-runner@v4 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}