Skip to content

Commit

Permalink
chore(ci): update golang to 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
corrieriluca committed Apr 24, 2023
1 parent 7a59609 commit 6ee9163
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Test and coverage
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
build:
Expand All @@ -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
uses: codecov/codecov-action@v3
18 changes: 7 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
# run only against tags
tags:
- '*'
- "*"

permissions:
contents: write
Expand All @@ -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'
Expand All @@ -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 }}
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

0 comments on commit 6ee9163

Please sign in to comment.