Skip to content

Merge pull request #17 from trpc-ecosystem/main #28

Merge pull request #17 from trpc-ecosystem/main

Merge pull request #17 from trpc-ecosystem/main #28

Workflow file for this run

name: Mysql Pull Request Check
on:
pull_request:
paths:
- 'mysql/**'
- '.github/workflows/mysql.yml'
push:
paths:
- 'mysql/**'
- '.github/workflows/mysql.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 mysql && go build -v ./...
- name: Test
run: cd mysql && go test -v -coverprofile=coverage.out -gcflags=all=-l ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: ./mysql/coverage.out
flags: mysql
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}