From 9e284fdcae874f9a0076ab1448e7162ce7e6a5f3 Mon Sep 17 00:00:00 2001 From: Luca Saladino Date: Tue, 21 May 2024 18:25:54 +0200 Subject: [PATCH] Fixed go version --- .github/workflows/go.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d38a786..7c83783 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,7 +1,7 @@ on: push: tags: - - 'v*' + - "v*" name: Release @@ -12,37 +12,37 @@ defaults: jobs: lint: name: Lint - runs-on: 'ubuntu-latest' + runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: '1.16.3' + go-version: "1.22.3" - name: golangci-lint uses: golangci/golangci-lint-action@v2.5.2 with: version: latest test: name: Test - runs-on: 'ubuntu-latest' + runs-on: "ubuntu-latest" needs: lint steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: '1.16.3' + go-version: "1.16.3" - run: go test -v -cover release: name: Release - runs-on: 'ubuntu-latest' + runs-on: "ubuntu-latest" needs: test strategy: matrix: goosarch: - - 'linux/amd64' - - 'linux/arm64' - - 'darwin/amd64' - - 'darwin/arm64' + - "linux/amd64" + - "linux/arm64" + - "darwin/amd64" + - "darwin/arm64" steps: - name: Checkout code uses: actions/checkout@v2 @@ -50,7 +50,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v2 with: - go-version: '1.16.3' + go-version: "1.16.3" - name: Get OS and arch info run: | GOOSARCH=${{matrix.goosarch}} @@ -64,8 +64,7 @@ jobs: run: | go build -o "$BINARY_NAME" -v - name: Release Notes - run: - git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md" + run: git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md" - name: Release with Notes uses: softprops/action-gh-release@v1 with: