Skip to content

chore(main): release fxgcppubsub 1.4.0 (#23) #29

chore(main): release fxgcppubsub 1.4.0 (#23)

chore(main): release fxgcppubsub 1.4.0 (#23) #29

Workflow file for this run

name: coverage
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
module:
- "fxgcppubsub"
- "fxgomysqlserver"
- "fxslack"
- "fxredis"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
check-latest: true
- name: Install dependencies for module ${{ matrix.module }}
working-directory: ${{ matrix.module }}
run: go mod download
- name: Run tests for module ${{ matrix.module }}
working-directory: ${{ matrix.module }}
run: go test -v -race -failfast -coverpkg=./... -covermode=atomic -coverprofile=coverage.tmp.out ./...
- name: Exclude testdata
working-directory: ${{ matrix.module}}
run: cat coverage.tmp.out | grep -v "testdata" > coverage.out
- name: Clean temp coverage
working-directory: ${{ matrix.module }}
run: rm coverage.tmp.out
- name: Codecov for module ${{ matrix.module }}
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
flags: ${{ matrix.module }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}