From 90d86ec0a37ab361e686b164f8e43d6ead6cefa6 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Thu, 22 Feb 2024 14:23:29 +0700 Subject: [PATCH] Update deprecated github actions Signed-off-by: NikitaSkrynnik --- .github/workflows/ci.yaml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6fb48cb..dade127 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -69,20 +69,21 @@ jobs: METAL_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }} - name: Set up go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: 1.20.11 - name: Checkout files - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: ${{ github.repository }} + - name: Install kind - uses: engineerd/setup-kind@v0.5.0 + uses: helm/kind-action@v1 with: config: ${{ github.repository }}/kind-cluster-config.yaml version: v0.20.0 - image: kindest/node:v1.28.0 + node_image: kindest/node:v1.28.0 - name: Check kind run: | @@ -96,6 +97,19 @@ jobs: mv ./clusterctl /usr/local/bin/clusterctl clusterctl version + - name: Install metal CLI + run: | + curl -L https://github.com/equinix/metal-cli/releases/download/v0.16.0/metal-linux-amd64 -o metal + chmod +x ./metal + mv ./metal /usr/local/bin/metal + metal -v + + - name: Checkout deployments + uses: actions/checkout@v4 + with: + repository: networkservicemesh/deployments-k8s + path: networkservicemesh/deployments-k8s + - name: Setup ssh working-directory: ${{ github.repository }} id: setup_ssh @@ -109,7 +123,7 @@ jobs: METAL_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }} - name: Setup cluster - uses: nick-fields/retry@v2.8.3 + uses: nick-fields/retry@v3 with: timeout_minutes: 50 max_attempts: 3 @@ -144,7 +158,7 @@ jobs: working-directory: ${{ github.repository }} - name: Upload logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: ${{ matrix.CNI }}-logs