Skip to content

Commit

Permalink
chore: Update Go build workflow and Makefile, improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
edmarfelipe committed Aug 24, 2024
1 parent cd241d4 commit 8bd3fc6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: Go

env:
GO_VERSION: '1.23'
GO_LINT_VERSION: 'v1.60.3'
GO_VERSION: "1.23"
GO_LINT_VERSION: "v1.60.3"

on:
push:
branches:
- develop
- main

pull_request:
types: [opened, reopened, synchronize]

permissions:
# Required: allow read access to the content for analysis.
Expand Down Expand Up @@ -54,3 +53,16 @@ jobs:
go-version: ${{env.GO_VERSION}}
- name: Test
run: make test
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage.txt

coverage:
name: "Code coverage report"
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
needs: test
steps:
- uses: fgrosse/go-coverage-report@v1.0.2

0 comments on commit 8bd3fc6

Please sign in to comment.