Skip to content

Merge pull request #92 from samgozman/91-dont-compose-news-that-was-f… #269

Merge pull request #92 from samgozman/91-dont-compose-news-that-was-f…

Merge pull request #92 from samgozman/91-dont-compose-news-that-was-f… #269

Workflow file for this run

name: Unit tests and coverage
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
unit_test_go:
name: Go unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.5
- name: Get dependencies
run: go mod download
- name: Run unit tests with coverage
run: go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}