diff --git a/.github/actions/artifacts-restore/action.yml b/.github/actions/artifacts-restore/action.yml index 57a15cda09..f568f13f0d 100644 --- a/.github/actions/artifacts-restore/action.yml +++ b/.github/actions/artifacts-restore/action.yml @@ -1,21 +1,23 @@ -name: "Artifacts restore" +name: 'Artifacts restore' +description: 'Artifacts restore' inputs: dotnet-version: + description: 'The version of the dotnet' default: '7.0.x' runs: - using: "composite" + using: 'composite' steps: - name: Use cached cake frosting id: cache-cake - uses: actions/cache@v3.2.5 + uses: actions/cache@v3 with: path: run key: run-${{ runner.os }}-${{ hashFiles('./build/**') }} - name: Use cached tools id: cache-tools - uses: actions/cache@v3.2.5 + uses: actions/cache@v3 with: path: tools key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }} @@ -27,6 +29,6 @@ runs: path: ${{ github.workspace }}/dogfood - name: Setup .NET SDK - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ inputs.dotnet-version }} diff --git a/.github/actions/docker-publish/action.yml b/.github/actions/docker-publish/action.yml new file mode 100644 index 0000000000..c205aba613 --- /dev/null +++ b/.github/actions/docker-publish/action.yml @@ -0,0 +1,47 @@ +name: 'Docker Publish' +description: 'Docker Publish Images' +inputs: + arch: + description: 'Docker architecture' + required: true + distro: + description: 'Linux Distro' + required: true + targetFramework: + description: '.net version' + required: true + docker_registry_username: + description: 'DockerHub Registry Username' + required: true + docker_registry_password: + description: 'DockerHub Registry Password' + required: true + github_registry_username: + description: 'GitHub Registry Username' + required: true + github_registry_password: + description: 'GitHub Registry Password' + required: true +runs: + using: 'composite' + steps: + - + name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ inputs.docker_registry_username }} + password: ${{ inputs.docker_registry_password }} + - + name: '[Docker Publish] DockerHub' + shell: pwsh + run: dotnet run/docker.dll --target=DockerPublish --arch ${{ inputs.arch }} --docker_dotnetversion=${{ inputs.targetFramework }} --docker_distro=${{ inputs.distro }} --docker_registry dockerhub + - + name: Login to GitHub + uses: docker/login-action@v2 + with: + username: ${{ inputs.github_registry_username }} + password: ${{ inputs.github_registry_password }} + - + name: '[Docker Publish] GitHub' + shell: pwsh + run: dotnet run/docker.dll --target=DockerPublish --arch ${{ inputs.arch }} --docker_dotnetversion=${{ inputs.targetFramework }} --docker_distro=${{ inputs.distro }} --docker_registry github diff --git a/.github/actions/docker-test/action.yml b/.github/actions/docker-test/action.yml new file mode 100644 index 0000000000..15988d6678 --- /dev/null +++ b/.github/actions/docker-test/action.yml @@ -0,0 +1,23 @@ +name: 'Docker Test' +description: 'Docker Test Images' +inputs: + arch: + description: 'Docker architecture' + default: 'amd64' + distro: + description: 'Linux Distro' + default: 'debian.11' + targetFramework: + description: '.net version' + default: '7.0' +runs: + using: 'composite' + steps: + - + name: '[Docker Build & Test] DockerHub' + shell: pwsh + run: dotnet run/docker.dll --target=DockerTest --arch ${{ inputs.arch }} --docker_dotnetversion=${{ inputs.targetFramework }} --docker_distro=${{ inputs.distro }} --docker_registry dockerhub + - + name: '[Docker Build & Test] GitHub' + shell: pwsh + run: dotnet run/docker.dll --target=DockerTest --arch ${{ inputs.arch }} --docker_dotnetversion=${{ inputs.targetFramework }} --docker_distro=${{ inputs.distro }} --docker_registry github diff --git a/.github/workflows/_artifacts_linux.yml b/.github/workflows/_artifacts_linux.yml new file mode 100644 index 0000000000..4945e3b94e --- /dev/null +++ b/.github/workflows/_artifacts_linux.yml @@ -0,0 +1,52 @@ +on: + workflow_call: + inputs: + runner: + required: true + type: string + arch: + required: true + type: string + +env: + DOTNET_INSTALL_DIR: "./.dotnet" + +jobs: + artifacts: + name: ${{ matrix.distro }} - net${{ matrix.targetFramework }} + runs-on: ${{ inputs.runner }} + strategy: + matrix: + distro: [ alpine.3.15, alpine.3.16, alpine.3.17, centos.7, centos.stream.8, fedora.36, debian.10, debian.11, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ] + targetFramework: [ '7.0', '6.0' ] + fail-fast: false + + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Restore State + uses: ./.github/actions/artifacts-restore + - + uses: actions/download-artifact@v3 + name: Download nuget packages + with: + name: nuget + path: ${{ github.workspace }}/artifacts/packages/nuget + - + uses: actions/download-artifact@v3 + name: Download native packages + with: + name: native-${{ runner.os }} + path: ${{ github.workspace }}/artifacts/packages/native + - + name: Setup QEMU + if: inputs.arch == 'arm64' + uses: docker/setup-qemu-action@v2 + - + name: '[Test Artifacts]' + shell: pwsh + run: dotnet run/artifacts.dll --target=ArtifactsTest --arch ${{ inputs.arch }} --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} diff --git a/.github/workflows/_artifacts_windows.yml b/.github/workflows/_artifacts_windows.yml new file mode 100644 index 0000000000..8e397c5ae0 --- /dev/null +++ b/.github/workflows/_artifacts_windows.yml @@ -0,0 +1,31 @@ +on: + workflow_call: + +jobs: + artifacts: + name: ${{ matrix.package }} + runs-on: windows-latest + strategy: + matrix: + package: [ Executable, MsBuildFull ] + fail-fast: false + + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Restore State + uses: ./.github/actions/artifacts-restore + - + uses: actions/download-artifact@v3 + name: Download nuget packages + with: + name: nuget + path: ${{ github.workspace }}/artifacts/packages/nuget + - + name: '[Test Artifacts]' + shell: pwsh + run: dotnet run/artifacts.dll --target=Artifacts${{ matrix.package }}Test diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml new file mode 100644 index 0000000000..7f40185dbd --- /dev/null +++ b/.github/workflows/_build.yml @@ -0,0 +1,45 @@ +on: + workflow_call: + +jobs: + build: + name: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + + runs-on: ${{ matrix.os }} + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Restore State + uses: ./.github/actions/artifacts-restore + - + name: '[Build]' + shell: pwsh + run: dotnet run/build.dll --target=Package + - + name: 'Upload nuget packages' + uses: actions/upload-artifact@v3 + if: matrix.os == 'windows-latest' + with: + name: nuget + path: ${{ github.workspace }}/artifacts/packages/nuget + - + name: 'Upload native packages' + uses: actions/upload-artifact@v3 + if: matrix.os == 'windows-latest' + with: + name: native-${{ runner.os }} + path: ${{ github.workspace }}/artifacts/packages/native/*.zip + - + name: 'Upload native packages' + uses: actions/upload-artifact@v3 + if: matrix.os != 'windows-latest' + with: + name: native-${{ runner.os }} + path: ${{ github.workspace }}/artifacts/packages/native/*.tar.gz diff --git a/.github/workflows/_docker.yml b/.github/workflows/_docker.yml new file mode 100644 index 0000000000..37e2aec199 --- /dev/null +++ b/.github/workflows/_docker.yml @@ -0,0 +1,62 @@ +on: + workflow_call: + inputs: + runner: + required: true + type: string + arch: + required: true + type: string + +env: + DOTNET_INSTALL_DIR: "./.dotnet" + +jobs: + docker: + name: ${{ matrix.distro }} - net${{ matrix.targetFramework }} + runs-on: ${{ inputs.runner }} + strategy: + matrix: + distro: [ alpine.3.15, alpine.3.16, alpine.3.17, centos.7, centos.stream.8, fedora.36, debian.10, debian.11, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ] + targetFramework: [ '7.0', '6.0' ] + fail-fast: false + + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Restore State + uses: ./.github/actions/artifacts-restore + - + uses: actions/download-artifact@v3 + name: Download nuget packages + with: + name: nuget + path: ${{ github.workspace }}/artifacts/packages/nuget + - + name: Setup QEMU + if: inputs.arch == 'arm64' + uses: docker/setup-qemu-action@v2 + - + name: Docker Test + if: success() && github.event_name == 'pull_request' || github.repository_owner != 'GitTools' + uses: ./.github/actions/docker-test + with: + arch: ${{ inputs.arch }} + distro: ${{ matrix.distro }} + targetFramework: ${{ matrix.targetFramework }} + - + name: Docker Publish + if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' && github.ref_name == 'main' + uses: ./.github/actions/docker-publish + with: + arch: ${{ inputs.arch }} + distro: ${{ matrix.distro }} + targetFramework: ${{ matrix.targetFramework }} + docker_registry_username: ${{ secrets.DOCKER_USERNAME }} + docker_registry_password: ${{ secrets.DOCKER_PASSWORD }} + github_registry_username: ${{ github.repository_owner }} + github_registry_password: ${{ secrets.DOCKER_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/_prepare.yml b/.github/workflows/_prepare.yml new file mode 100644 index 0000000000..e9cb4ca8ed --- /dev/null +++ b/.github/workflows/_prepare.yml @@ -0,0 +1,41 @@ +on: + workflow_call: + +jobs: + prepare: + name: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + + runs-on: ${{ matrix.os }} + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Cache cake frosting + id: cache-cake + uses: actions/cache@v3 + with: + path: run + key: run-${{ runner.os }}-${{ hashFiles('./build/**') }} + - + name: Setup .NET SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '7.0.x' + - + name: '[Prepare]' + if: steps.cache-cake.outputs.cache-hit != 'true' + run: dotnet build build/CI.sln --configuration=Release + - + name: '[DogFood]' + shell: pwsh + run: dotnet run/build.dll --target=BuildPrepare + - + name: 'Upload gitversion tool' + uses: actions/upload-artifact@v3 + with: + name: tool + path: ${{ github.workspace }}/dogfood diff --git a/.github/workflows/_publish.yml b/.github/workflows/_publish.yml new file mode 100644 index 0000000000..6c6a319609 --- /dev/null +++ b/.github/workflows/_publish.yml @@ -0,0 +1,34 @@ +on: + workflow_call: + +jobs: + publish: + name: ${{ matrix.taskName }} + runs-on: windows-latest + strategy: + matrix: + taskName: [ NuGet, Chocolatey ] + fail-fast: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }} + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Restore State + uses: ./.github/actions/artifacts-restore + - + uses: actions/download-artifact@v3 + name: Download nuget packages + with: + name: nuget + path: ${{ github.workspace }}/artifacts/packages/nuget + - + name: '[Publish]' + shell: pwsh + run: dotnet run/publish.dll --target=Publish${{ matrix.taskName }} \ No newline at end of file diff --git a/.github/workflows/_unit_tests.yml b/.github/workflows/_unit_tests.yml new file mode 100644 index 0000000000..fc32fb252f --- /dev/null +++ b/.github/workflows/_unit_tests.yml @@ -0,0 +1,33 @@ +on: + workflow_call: + +jobs: + unit_test: + name: ${{ matrix.os }} - ${{ matrix.targetFramework }} + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + targetFramework: [net7.0, net6.0] + fail-fast: false + + runs-on: ${{ matrix.os }} + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Restore State + uses: ./.github/actions/artifacts-restore + - + name: '[Unit Test]' + shell: pwsh + run: dotnet run/build.dll --target=Test --dotnet_target=${{ matrix.targetFramework }} + + - + name: Test Summary + uses: test-summary/action@v2 + with: + paths: artifacts/test-results/*.results.xml + if: always() diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e795014f1..98e176bef8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,314 +36,56 @@ permissions: jobs: prepare: - name: Prepare Build - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-latest, ubuntu-latest, macos-latest] - fail-fast: false - - steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Cache cake frosting - id: cache-cake - uses: actions/cache@v3.2.5 - with: - path: run - key: run-${{ runner.os }}-${{ hashFiles('./build/**') }} - - - name: Setup .NET SDK - uses: actions/setup-dotnet@v3.0.3 - with: - dotnet-version: '7.0.x' - - - name: '[Prepare]' - if: steps.cache-cake.outputs.cache-hit != 'true' - run: dotnet build build/CI.sln --configuration=Release - - - name: '[DogFood]' - shell: pwsh - run: dotnet run/build.dll --target=BuildPrepare - - - name: 'Upload gitversion tool' - uses: actions/upload-artifact@v3 - with: - name: tool - path: ${{ github.workspace }}/dogfood + name: Prepare + uses: ./.github/workflows/_prepare.yml build: name: Build & Package - needs: [prepare] - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-latest, ubuntu-latest, macos-latest] - fail-fast: false - - steps: - - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Restore State - uses: ./.github/actions/artifacts-restore - - - name: '[Build]' - shell: pwsh - run: dotnet run/build.dll --target=Package - - - name: 'Upload nuget packages' - uses: actions/upload-artifact@v3 - if: matrix.os == 'windows-latest' - with: - name: nuget - path: ${{ github.workspace }}/artifacts/packages/nuget - - - name: 'Upload native packages' - uses: actions/upload-artifact@v3 - if: matrix.os == 'windows-latest' - with: - name: native-${{ runner.os }} - path: ${{ github.workspace }}/artifacts/packages/native/*.zip - - - name: 'Upload native packages' - uses: actions/upload-artifact@v3 - if: matrix.os != 'windows-latest' - with: - name: native-${{ runner.os }} - path: ${{ github.workspace }}/artifacts/packages/native/*.tar.gz + needs: [ prepare ] + uses: ./.github/workflows/_build.yml unit_test: name: Test - needs: [prepare] - runs-on: ${{ matrix.os }} - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - strategy: - matrix: - os: [windows-latest, ubuntu-latest, macos-latest] - targetFramework: [net7.0, net6.0] - fail-fast: false - - steps: - - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Restore State - uses: ./.github/actions/artifacts-restore - - - name: '[Unit Test]' - shell: pwsh - run: dotnet run/build.dll --target=Test --dotnet_target=${{ matrix.targetFramework }} - - - - name: Test Summary - uses: test-summary/action@v2 - with: - paths: artifacts/test-results/*.results.xml - if: always() + needs: [ prepare ] + uses: ./.github/workflows/_unit_tests.yml artifacts_windows_test: - name: Artifacts - needs: [build] - runs-on: windows-latest - strategy: - matrix: - package: [ Executable, MsBuildFull ] - fail-fast: false - - steps: - - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Restore State - uses: ./.github/actions/artifacts-restore - - - uses: actions/download-artifact@v3 - name: Download nuget packages - with: - name: nuget - path: ${{ github.workspace }}/artifacts/packages/nuget - - - name: '[Test Artifacts]' - shell: pwsh - run: dotnet run/artifacts.dll --target=Artifacts${{ matrix.package }}Test + name: Artifacts Windows + needs: [ build ] + uses: ./.github/workflows/_artifacts_windows.yml artifacts_linux_test: - name: Artifacts - needs: [build] - runs-on: ubuntu-latest + needs: [ build ] + name: Artifacts Linux (${{ matrix.arch }}) strategy: matrix: - targetFramework: [ '7.0', '6.0' ] - distro: [ alpine.3.15, alpine.3.16, alpine.3.17, centos.7, centos.stream.8, fedora.36, debian.10, debian.11, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ] - fail-fast: false - - steps: - - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Restore State - uses: ./.github/actions/artifacts-restore - - - uses: actions/download-artifact@v3 - name: Download nuget packages - with: - name: nuget - path: ${{ github.workspace }}/artifacts/packages/nuget - - - uses: actions/download-artifact@v3 - name: Download native packages - with: - name: native-${{ runner.os }} - path: ${{ github.workspace }}/artifacts/packages/native - - - name: Setup QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - install: true - - - - name: '[Test Artifacts (amd64)]' - shell: pwsh - run: dotnet run/artifacts.dll --target=ArtifactsTest --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} - - - name: '[Test Artifacts (arm64)]' - shell: pwsh - run: dotnet run/artifacts.dll --target=ArtifactsTest --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} + arch: [ amd64, arm64 ] + uses: ./.github/workflows/_artifacts_linux.yml + with: + runner: ubuntu-latest + arch: ${{ matrix.arch }} docker_linux_images: - name: Docker Images - needs: [build] - runs-on: ubuntu-latest + needs: [ build ] + name: Docker Images (${{ matrix.arch }}) strategy: matrix: - targetFramework: [ '7.0', '6.0' ] - distro: [ alpine.3.15, alpine.3.16, alpine.3.17, centos.7, centos.stream.8, fedora.36, debian.10, debian.11, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ] - fail-fast: false - - steps: - - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Restore State - uses: ./.github/actions/artifacts-restore - - - uses: actions/download-artifact@v3 - name: Download nuget packages - with: - name: nuget - path: ${{ github.workspace }}/artifacts/packages/nuget - - - name: Setup QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - install: true - - - name: Login to DockerHub - if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: '[Docker Build/Test/Publish (amd64)] DockerHub' - if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' - shell: pwsh - run: dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub - - - name: '[Docker Build/Test/Publish (arm64)] DockerHub' - if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' - shell: pwsh - run: dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub - - - name: '[Docker Publish Manifest] DockerHub' - if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' - shell: pwsh - run: dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub - - - - name: Login to GitHub Container Registry - if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.DOCKER_GITHUB_TOKEN }} - - - name: '[Docker Build/Test/Publish (amd64)] GitHub Container Registry' - if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' - shell: pwsh - run: dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github - - - name: '[Docker Build/Test/Publish (arm64)] GitHub Container Registry' - if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' - shell: pwsh - run: dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github - - - name: '[Docker Publish Manifest] GitHub Container Registry' - if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' - shell: pwsh - run: dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github + arch: [ amd64, arm64 ] + uses: ./.github/workflows/_docker.yml + with: + runner: ubuntu-latest + arch: ${{ matrix.arch }} + secrets: inherit publish: name: Publish - needs: [artifacts_windows_test, artifacts_linux_test, docker_linux_images] - runs-on: windows-latest - strategy: - matrix: - taskName: [NuGet, Chocolatey] - fail-fast: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} - CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }} - steps: - - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Restore State - uses: ./.github/actions/artifacts-restore - - - uses: actions/download-artifact@v3 - name: Download nuget packages - with: - name: nuget - path: ${{ github.workspace }}/artifacts/packages/nuget - - - name: '[Publish]' - shell: pwsh - run: dotnet run/publish.dll --target=Publish${{ matrix.taskName }} + needs: [ artifacts_windows_test, artifacts_linux_test, docker_linux_images ] + uses: ./.github/workflows/_publish.yml + secrets: inherit release: name: Release - needs: [publish] + needs: [ publish ] runs-on: windows-latest env: GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index dd38ab08c1..d193df6607 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -57,14 +57,14 @@ jobs: - name: Cache cake frosting id: cache-cake - uses: actions/cache@v3.2.5 + uses: actions/cache@v3 with: path: run key: run-${{ runner.os }}-${{ hashFiles('./build/**') }} - name: Setup .NET SDK - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c15fd0df6d..a39e8c0c05 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -48,14 +48,14 @@ jobs: - name: Cache cake frosting id: cache-cake - uses: actions/cache@v3.2.5 + uses: actions/cache@v3 with: path: run key: run-${{ runner.os }}-${{ hashFiles('./build/**') }} - name: Use cached tools id: cache-tools - uses: actions/cache@v3.2.5 + uses: actions/cache@v3 with: path: tools key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }} @@ -69,14 +69,14 @@ jobs: - name: Cache Node Modules id: cache-node - uses: actions/cache@v3.2.5 + uses: actions/cache@v3 with: path: ${{ steps.cache-node-dir.outputs.dir }} key: node-${{ runner.os }}-${{ hashFiles('./package-lock.json') }} restore-keys: node-${{ runner.os }} - name: Setup .NET SDK - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' - @@ -124,7 +124,7 @@ jobs: echo "value=$value" >> $GITHUB_OUTPUT - name: '[Remark Lint]' - uses: reviewdog/action-remark-lint@v5.6 + uses: reviewdog/action-remark-lint@v5 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: ${{ steps.reporter.outputs.value }} diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7043407442..1c745b78ee 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -36,7 +36,7 @@ jobs: - uses: actions/checkout@v3 - name: Setup .NET SDK - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.103' - diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml index f42c1204d5..672a3e2f3c 100644 --- a/.github/workflows/homebrew.yml +++ b/.github/workflows/homebrew.yml @@ -14,7 +14,7 @@ jobs: name: Bump Homebrew formula runs-on: macos-latest steps: - - uses: dawidd6/action-homebrew-bump-formula@v3.8.3 + - uses: dawidd6/action-homebrew-bump-formula@v3 with: # GitHub token, required, not the default one token: ${{secrets.RELEASE_GITHUB_TOKEN}}