PMM-14856 Make multiline output of telemetry metrics #20290
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Client: pmm-admin' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - v3 | |
| - pmm-* | |
| tags: | |
| - v[0-9]+.[0-9]+.[0-9]+* | |
| paths-ignore: | |
| - "documentation/**" | |
| - "dashboards/**" | |
| pull_request: | |
| paths-ignore: | |
| - "agent/**" | |
| - "api-tests/**" | |
| - "docs/**" | |
| - "documentation/**" | |
| - "managed/**" | |
| - "qan-api2/**" | |
| - "update/**" | |
| - "vmproxy/**" | |
| - "ui/**" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-22.04 | |
| defaults: | |
| run: | |
| working-directory: ${{ github.workspace }}/admin | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: ${{ github.workspace }}/go.mod | |
| cache: false | |
| - name: Enable Go build cache | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: ~/.cache/go-build | |
| key: ${{ runner.os }}-go-build-${{ github.ref }}-${{ hashFiles('**') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go-build-${{ github.ref }}- | |
| ${{ runner.os }}-go-build- | |
| - name: Enable Go modules cache | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-modules-${{ hashFiles('**/go.sum') }} | |
| restore-keys: ${{ runner.os }}-go-modules- | |
| - name: Download Go modules | |
| run: go mod download -x | |
| - name: Build and install | |
| run: make install | |
| - name: Run tests | |
| run: make test-cover | |
| - name: Upload coverage results | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| files: cover.out | |
| flags: admin | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Run debug commands on failure | |
| if: ${{ failure() }} | |
| run: | | |
| env | sort | |
| go env | sort | |
| git status |