From 408ad685edeb72d6ee598b811d14bcc72f5667f3 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 29 Apr 2024 19:23:43 +0100 Subject: [PATCH] Update github checkout and setup-go actions Fixes Node.js 16 deprecation warnings Also pins macos version after builds started failing due to macos-latest being updated to macos-14 Signed-off-by: James Taylor --- .github/workflows/docker-build.yml | 4 ++-- .github/workflows/go.yml | 6 +++--- .github/workflows/golangci-lint.yml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 3593762..ad86b46 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Docker meta id: meta uses: docker/metadata-action@v4 @@ -63,7 +63,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Create package uses: hyperledgendary/package-k8s-chaincode-action@ba10aea43e3d4f7991116527faf96e3c2b07abc7 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6f129b0..18cd5ef 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,17 +21,17 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macOS-latest] + os: [ubuntu-latest, macOS-13] goarch: [amd64, arm64] env: GOARCH: ${{ matrix.goarch }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 1.22 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ba9d708..6d2abfe 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -23,10 +23,10 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: 1.22 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 with: