diff --git a/.github/workflows/dapr_cli.yaml b/.github/workflows/dapr_cli.yaml index 1983bdfea..4789e06b8 100644 --- a/.github/workflows/dapr_cli.yaml +++ b/.github/workflows/dapr_cli.yaml @@ -57,42 +57,12 @@ jobs: target_arch: arm steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 id: setup-go with: go-version-file: 'go.mod' - - name: Cache Go modules (Linux) - if: matrix.target_os == 'linux' - uses: actions/cache@v3 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - - name: Cache Go modules (Windows) - if: matrix.target_os == 'windows' - uses: actions/cache@v3 - with: - path: | - ~\AppData\Local\go-build - ~\go\pkg\mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - - name: Cache Go modules (macOS) - if: matrix.target_os == 'darwin' - uses: actions/cache@v3 - with: - path: | - ~/Library/Caches/go-build - ~/go/pkg/mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Run golangci-lint if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' uses: golangci/golangci-lint-action@v3.2.0 @@ -187,7 +157,7 @@ jobs: runs-on: windows-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Parse release version and set REL_VERSION run: python ./.github/scripts/get_release_version.py - name: Update winget manifests diff --git a/.github/workflows/dev_container_feature_release.yaml b/.github/workflows/dev_container_feature_release.yaml index d94040779..7fee6ccb3 100644 --- a/.github/workflows/dev_container_feature_release.yaml +++ b/.github/workflows/dev_container_feature_release.yaml @@ -11,7 +11,7 @@ jobs: pull-requests: write packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Publish Features" uses: devcontainers/action@v1 diff --git a/.github/workflows/dev_container_feature_test.yaml b/.github/workflows/dev_container_feature_test.yaml index 24c40b18d..4e4eb083a 100644 --- a/.github/workflows/dev_container_feature_test.yaml +++ b/.github/workflows/dev_container_feature_test.yaml @@ -22,7 +22,7 @@ jobs: - ubuntu:latest - mcr.microsoft.com/devcontainers/base:ubuntu steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Install latest devcontainer CLI" run: npm install -g @devcontainers/cli @@ -39,7 +39,7 @@ jobs: features: - dapr-cli steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Install latest devcontainer CLI" run: npm install -g @devcontainers/cli @@ -52,7 +52,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Install latest devcontainer CLI" run: npm install -g @devcontainers/cli diff --git a/.github/workflows/dev_container_feature_validate.yaml b/.github/workflows/dev_container_feature_validate.yaml index 4922db50b..69a30fa4f 100644 --- a/.github/workflows/dev_container_feature_validate.yaml +++ b/.github/workflows/dev_container_feature_validate.yaml @@ -9,7 +9,7 @@ jobs: validate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Validate devcontainer-feature.json files" uses: devcontainers/action@v1 diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index 8bb35258b..84ff42170 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -34,7 +34,7 @@ jobs: FOSSA_API_KEY: b88e1f4287c3108c8751bf106fb46db6 # This is a push-only token that is safe to be exposed. steps: - name: "Checkout code" - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: "Run FOSSA Scan" uses: fossas/fossa-action@v1.3.1 # Use a specific version if locking is preferred diff --git a/.github/workflows/installdaprwin.yml b/.github/workflows/installdaprwin.yml index af9ddfe99..c91eed169 100644 --- a/.github/workflows/installdaprwin.yml +++ b/.github/workflows/installdaprwin.yml @@ -38,7 +38,7 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Install Dapr - name: Install DAPR CLI diff --git a/.github/workflows/kind_e2e.yaml b/.github/workflows/kind_e2e.yaml index af559b29a..cf5a752fd 100644 --- a/.github/workflows/kind_e2e.yaml +++ b/.github/workflows/kind_e2e.yaml @@ -80,23 +80,14 @@ jobs: kind-image-sha: sha256:9be91e9e9cdf116809841fc77ebdb8845443c4c72fe5218f3ae9eb57fdb4bace steps: - name: Check out code onto GOPATH - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: ./src/github.com/dapr/cli - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 id: setup-go with: go-version-file: './src/github.com/dapr/cli/go.mod' - - name: Cache Go modules - uses: actions/cache@v3 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Configure KinD # Generate a KinD configuration file that uses: diff --git a/.github/workflows/self_hosted_e2e.yaml b/.github/workflows/self_hosted_e2e.yaml index 7213ef564..436eafcb6 100644 --- a/.github/workflows/self_hosted_e2e.yaml +++ b/.github/workflows/self_hosted_e2e.yaml @@ -63,42 +63,12 @@ jobs: dapr_install_mode: complete steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 id: setup-go with: go-version-file: "go.mod" - - name: Cache Go modules (Linux) - if: matrix.target_os == 'linux' - uses: actions/cache@v3 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - - name: Cache Go modules (Windows) - if: matrix.target_os == 'windows' - uses: actions/cache@v3 - with: - path: | - ~\AppData\Local\go-build - ~\go\pkg\mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - - name: Cache Go modules (macOS) - if: matrix.target_os == 'darwin' - uses: actions/cache@v3 - with: - path: | - ~/Library/Caches/go-build - ~/go/pkg/mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Install podman - MacOS timeout-minutes: 15 if: matrix.os == 'macos-latest' && matrix.dapr_install_mode == 'complete' diff --git a/.github/workflows/upgrade_e2e.yaml b/.github/workflows/upgrade_e2e.yaml index b6eb580d2..5c34bcf9d 100644 --- a/.github/workflows/upgrade_e2e.yaml +++ b/.github/workflows/upgrade_e2e.yaml @@ -74,24 +74,14 @@ jobs: kind-image-sha: sha256:9be91e9e9cdf116809841fc77ebdb8845443c4c72fe5218f3ae9eb57fdb4bace steps: - name: Check out code onto GOPATH - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: ./src/github.com/dapr/cli - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 id: setup-go with: go-version-file: './src/github.com/dapr/cli/go.mod' - - name: Cache Go modules - uses: actions/cache@v3 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ steps.setup-go.outputs.go-version }}- - - name: Configure KinD # Generate a KinD configuration file that uses: