From 6ee9163ddf18c9482dde1b05f80d0843157a05a7 Mon Sep 17 00:00:00 2001 From: Luca CORRIERI Date: Mon, 24 Apr 2023 16:39:36 +0200 Subject: [PATCH] chore(ci): update golang to 1.20 --- .github/workflows/codecov.yml | 8 ++++---- .github/workflows/release.yml | 18 +++++++----------- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 34f902f..76a22fd 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -3,10 +3,10 @@ name: Test and coverage on: push: branches: - - main + - main pull_request: branches: - - main + - main jobs: build: @@ -17,10 +17,10 @@ jobs: fetch-depth: 2 - uses: actions/setup-go@v3 with: - go-version: '1.19' + go-version: "1.20" - name: Run coverage run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic - name: Build run: go build -v ./... - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 \ No newline at end of file + uses: codecov/codecov-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53ee61e..d7fb533 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: push: # run only against tags tags: - - '*' + - "*" permissions: contents: write @@ -16,21 +16,17 @@ jobs: runs-on: ubuntu-latest environment: production steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - - - name: Fetch all tags + - name: Fetch all tags run: git fetch --force --tags - - - name: Set up Go + - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 - - - name: Run GoReleaser + go-version: "1.20" + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 with: # either 'goreleaser' (default) or 'goreleaser-pro' @@ -40,4 +36,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution - # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} \ No newline at end of file + # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}