From e5a744b86b1e5189a3e618753c71e0dac1eb6eae Mon Sep 17 00:00:00 2001 From: asabya Date: Mon, 3 Apr 2023 14:32:22 +0530 Subject: [PATCH 1/3] chore: update ghAction go --- .github/workflows/coverge.yml | 4 ++-- .github/workflows/go.yml | 2 +- .github/workflows/release.yaml | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/coverge.yml b/.github/workflows/coverge.yml index 58d367be..00dd5aa1 100644 --- a/.github/workflows/coverge.yml +++ b/.github/workflows/coverge.yml @@ -15,9 +15,9 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.20 + go-version: '1.20.1' - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} - name: Report results to DeepSource diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 32ad7fd7..d3b2a044 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,7 +26,7 @@ jobs: # as gofmt linter will report that they need to be changed run: git config --global core.autocrlf false - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 1 - name: Cache Go modules diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 10275573..695c3278 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,11 +16,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: '1.20.1' - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Fetch all tags @@ -43,11 +43,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: '1.20.1' - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Fetch all tags @@ -83,11 +83,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: '1.20.1' - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Fetch all tags From a3e7c76e3fbaa0d511d00278f2c924201fbf44bf Mon Sep 17 00:00:00 2001 From: asabya Date: Mon, 3 Apr 2023 14:42:37 +0530 Subject: [PATCH 2/3] chore: update gocross --- .github/workflows/coverge.yml | 2 +- .github/workflows/go.yml | 4 ++-- Makefile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverge.yml b/.github/workflows/coverge.yml index 00dd5aa1..0a2646a5 100644 --- a/.github/workflows/coverge.yml +++ b/.github/workflows/coverge.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: go-version: '1.20.1' - name: Checkout diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d3b2a044..ed1f9fd3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,11 +14,11 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go: [1.20] + go: ['1.20.1'] os: [ubuntu-latest, macos-latest, windows-latest] steps: - name: Setup Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - name: Set git to use LF diff --git a/Makefile b/Makefile index 16faa40d..4efc3efa 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ release: -v `pwd`:/go/src/github.com/fairDataSociety/fairOS-dfs \ -v /var/run/docker.sock:/var/run/docker.sock \ -w /go/src/github.com/fairDataSociety/fairOS-dfs \ - ghcr.io/goreleaser/goreleaser-cross:v1.19.5 release --rm-dist + ghcr.io/goreleaser/goreleaser-cross:v1.20.2 release --rm-dist .PHONY: release-dry-run release-dry-run: @@ -84,7 +84,7 @@ release-dry-run: -v `pwd`:/go/src/github.com/fairDataSociety/fairOS-dfs \ -v /var/run/docker.sock:/var/run/docker.sock \ -w /go/src/github.com/fairDataSociety/fairOS-dfs \ - ghcr.io/goreleaser/goreleaser-cross:v1.19.5 release --rm-dist \ + ghcr.io/goreleaser/goreleaser-cross:v1.20.2 release --rm-dist \ --skip-validate=true \ --skip-publish From af62700cd20fa6137cc07f2a55347180842c829e Mon Sep 17 00:00:00 2001 From: asabya Date: Mon, 3 Apr 2023 14:54:41 +0530 Subject: [PATCH 3/3] chore: update action/cache --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ed1f9fd3..ec179c1d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -30,7 +30,7 @@ jobs: with: fetch-depth: 1 - name: Cache Go modules - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}