Skip to content

Merge remote-tracking branch 'upstream/main' into r1.0 to release ka… #34

Merge remote-tracking branch 'upstream/main' into r1.0 to release ka…

Merge remote-tracking branch 'upstream/main' into r1.0 to release ka… #34

Workflow file for this run

name: Kafka Pull Request Check
on:
pull_request:
paths:
- 'kafka/**'
- '.github/workflows/kafka.yml'
push:
paths:
- 'kafka/**'
- '.github/workflows/kafka.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd kafka && go build -v ./...
- name: Test
run: cd kafka && go test -v -coverprofile=coverage.out ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: ./kafka/coverage.out
flags: kafka
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}