github.com/KEINOS/go-countline@v1.1.0/.github/workflows/update-codecov.yaml (about)

     1  # =============================================================================
     2  #  Update CodeCov
     3  # =============================================================================
     4  # This Workflow to updates the coverage to CodeCov.io on release.
     5  name: Update codecov.io
     6  
     7  on:
     8    workflow_dispatch:
     9    release:
    10      types:
    11        - created
    12      tags:
    13        - 'v*'
    14  
    15  jobs:
    16    build:
    17      runs-on: ubuntu-latest
    18      steps:
    19        - uses: actions/checkout@v3
    20          with:
    21            fetch-depth: 2
    22  
    23        - uses: actions/setup-go@v3
    24          with:
    25            go-version: '1.19'
    26            check-latest: true
    27  
    28        - name: Create test data
    29          run: |
    30            go generate ./...
    31  
    32        - name: Run coverage
    33          run: |
    34            go test -coverprofile=coverage.txt -covermode=atomic \
    35              ./... \
    36              github.com/KEINOS/go-countline/cl/_alt \
    37              github.com/KEINOS/go-countline/cl/_gen \
    38              github.com/KEINOS/go-countline/_example/countline
    39  
    40        - name: Upload coverage to Codecov
    41          run: bash <(curl -s https://codecov.io/bash)