Skip to content

Increasing Code Coverage #61

Increasing Code Coverage

Increasing Code Coverage #61

Workflow file for this run

name: Test and coverage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql
ports:
- 33061:3306
env:
MYSQL_ROOT_PASSWORD: kareem
MYSQL_DATABASE: mysqlmeta
MYSQL_USER: kareem
MYSQL_PASSWORD: password123
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.21"
- name: Run coverage
run: go test ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}