replace "host" key by "myrtea_host" in zap.log calls #114
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Installing Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "1.22" | |
- name: Run tests with code coverage | |
run: | | |
go test -coverprofile=coverage.out ./... -short | |
- name: Upload coverage artifact | |
if: github.event_name == 'push' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: ./coverage.out | |
- name: Download coverage artifact | |
if: github.event_name == 'push' | |
uses: actions/[email protected] | |
with: | |
name: coverage | |
path: . | |
- name: Upload coverage reports to Codecov | |
if: github.event_name == 'push' | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: View code coverage report | |
if: github.event_name == 'push' | |
run: go tool cover -func=coverage.out |