Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

fix the pipeline

fix the pipeline #236

Workflow file for this run

name: CI pipeline
# This workflow is triggered on pushes to the repository.
on:
push:
workflow_call:
jobs:
build:
name: Test & Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run tests
run: go test -race `go list ./... | grep -v cmd/analyze/code-samples | grep -v cmd/configuration | grep -v utils/httpRequest` -coverprofile cover.out.tmp
- name: Removes mocks from tests
run: cat cover.out.tmp | grep -v "mock_\|cmd/analyze/code-samples-example|cmd/configuration|utils/httpRequest" > cover.out
- uses: codecov/codecov-action@v2
with:
file: ./cover.out