Skip to content

Extract shared klog init with newline-escaping stderr writer #2372

Extract shared klog init with newline-escaping stderr writer

Extract shared klog init with newline-escaping stderr writer #2372

Workflow file for this run

name: Unit tests
on:
push:
branches: [ "main", "feature/*" ]
pull_request:
merge_group:
types: [ "checks_requested" ]
permissions:
contents: read
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Check style
run: make check_style
- name: Check module tidy
run: make check_mod_tidy
- name: Check licenses
run: make check_licenses
- name: Install Go Test Coverage
run: make install-go-test-coverage
- name: Build
run: make bin
- name: Test
run: make test
- name: Check test coverage
run: make cover
- name: Upload report
uses: actions/upload-artifact@v7
id: uploaded-report
with:
name: cover
path: cover.html
- name: Post test coverage to step summary
if: ${{ github.event_name == 'pull_request' }}
env:
ARTIFACT_URL: ${{ steps.uploaded-report.outputs.artifact-url }}
run: |
echo "Test coverage report: ${{ env.ARTIFACT_URL }}" >> $GITHUB_STEP_SUMMARY