From 417730b4c153bf52d98587fad03c09dfe3a227ff Mon Sep 17 00:00:00 2001 From: Hamza El-Saawy Date: Mon, 14 Nov 2022 20:34:23 -0500 Subject: [PATCH] Update CI actions Update `actions/checkout`, `actions/setup-go`, and `actions/upload-artifact` to version 3. Version 2 of the actions uses a deprecated version of node.js, and raises the following warning in the CI: ``` Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. ``` Signed-off-by: Hamza El-Saawy --- .github/workflows/ci.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6c7e6b983..8c647535af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,11 +48,11 @@ jobs: - uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: "go/src/github.com/Microsoft/hcsshim" # Install protoc-gen-gogoctrd in D:\bin - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: containerd/containerd ref: v1.6.2 @@ -92,7 +92,7 @@ jobs: env: GOPROXY: "https://proxy.golang.org,direct" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} @@ -127,8 +127,8 @@ jobs: name: Go Generate runs-on: "windows-2019" steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} - name: Validate go generate @@ -156,7 +156,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install go uses: actions/setup-go@v3 @@ -176,7 +176,7 @@ jobs: matrix: os: [windows-2019, windows-2022] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} @@ -195,7 +195,7 @@ jobs: - run: go build -mod=mod -o sample-logging-driver.exe ./cri-containerd/helpers/log.go working-directory: test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ github.event_name == 'pull_request' }} with: name: test_binaries_${{ matrix.os }} @@ -228,12 +228,12 @@ jobs: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH echo "${{ github.workspace }}/src/github.com/containerd/containerd/bin" >> $GITHUB_PATH - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: src/github.com/containerd/containerd repository: "containerd/containerd" - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: src/github.com/Microsoft/hcsshim @@ -344,7 +344,7 @@ jobs: needs: [test-windows, test-linux] runs-on: "windows-2019" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} @@ -366,7 +366,7 @@ jobs: - run: go build ./internal/tools/uvmboot - run: go build ./internal/tools/zapdir - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ github.event_name == 'pull_request' }} with: name: binaries @@ -390,7 +390,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install go uses: actions/setup-go@v3