2022-04-07 18:56:10 +03:00
|
|
|
name: "codecov"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflows: ["build"]
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
push:
|
|
|
|
branches: [ v3 ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ v3 ]
|
|
|
|
schedule:
|
|
|
|
- cron: '34 1 * * 0'
|
|
|
|
|
|
|
|
jobs:
|
2022-04-07 18:57:30 +03:00
|
|
|
codecov:
|
|
|
|
name: codecov
|
2022-04-07 18:56:10 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'go' ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: setup
|
2022-04-11 06:17:56 +00:00
|
|
|
uses: actions/setup-go@v3
|
2022-04-07 18:56:10 +03:00
|
|
|
with:
|
|
|
|
go-version: 1.17
|
2022-04-07 19:00:08 +03:00
|
|
|
- name: Run coverage
|
2022-04-07 19:12:49 +03:00
|
|
|
run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
|
|
|
|
- name: codecov
|
2022-10-06 17:34:40 +03:00
|
|
|
uses: codecov/codecov-action@v3.1.1
|