leozz37/hare

View on GitHub
.github/workflows/go.yml

Summary

Maintainability
Test Coverage
name: Go

on:
  push: {}
  pull_request: {}

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Get dependencies
        run: go mod download

      - name: Test
        run: go test -v -covermode=count -coverprofile=coverage.out .

      - name: Upload coverage
        run: bash <(curl -s https://codecov.io/bash)