Skip to content

Merge pull request #49 from sentoz/fix_service-monitor-manifest #86

Merge pull request #49 from sentoz/fix_service-monitor-manifest

Merge pull request #49 from sentoz/fix_service-monitor-manifest #86

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Install dependencies
run: |
go mod download
- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=cortex-tenant.coverprofile ./...
- name: Install goveralls
env:
GO111MODULE: off
run: go get github.com/mattn/goveralls
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=cortex-tenant.coverprofile -service=github