Skip to content

feat: add test suite for the cli tests #11860

feat: add test suite for the cli tests

feat: add test suite for the cli tests #11860

Workflow file for this run

name: Test
on:
pull_request:
push:
paths-ignore:
- '**.md'
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/*.go
go.mod
go.sum
**/testdata/**
- uses: actions/setup-go@v4
if: env.GIT_DIFF
with:
go-version: '1.21'
cache: true
cache-dependency-path: go.sum
- run: ./scripts/test-coverage
if: env.GIT_DIFF
- name: Upload coverage to Codecov
uses: codecov/[email protected]
if: env.GIT_DIFF
with:
file: ./coverage.txt
fail_ci_if_error: true
verbose: true