Bump golang.org/x/text from 0.20.0 to 0.21.0 #13829
This file contains 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-agent' | |
on: | |
push: | |
branches: | |
- main | |
- pmm-* | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
pull_request: | |
paths-ignore: | |
- "admin/**" | |
- "api-tests/**" | |
- "cli-tests/**" | |
- "docs/**" | |
- "managed/**" | |
- "qan-api2/**" | |
- "update/**" | |
- "vmproxy/**" | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
images: | |
- { mysql: 'mysql:5.6', mongo: 'mongo:4.2', postgres: 'postgres:14', pmm_server: 'percona/pmm-server:2.0.0' } | |
- { mysql: 'mysql:5.7', mongo: 'mongo:4.4', postgres: 'postgres:15', pmm_server: 'percona/pmm-server:2.0.1' } | |
- { mysql: 'mysql:8.0', mongo: 'mongo:4.4', postgres: 'postgres:16', pmm_server: 'percona/pmm-server:2.1.0' } | |
- { mysql: 'mysql:8.0', mongo: 'mongo:4.4', postgres: 'postgres:17rc1', pmm_server: 'percona/pmm-server:2.2.0' } | |
# Percona + latest PMM Server release | |
- { mysql: 'percona:5.6', mongo: 'percona/percona-server-mongodb:4.2', postgres: 'perconalab/percona-distribution-postgresql:15', pg_libs: 'pg_stat_statements,pg_stat_monitor', pmm_server: 'percona/pmm-server:2' } | |
- { mysql: 'percona:5.7', mongo: 'percona/percona-server-mongodb:4.4', postgres: 'perconalab/percona-distribution-postgresql:16', pg_libs: 'pg_stat_statements,pg_stat_monitor', pmm_server: 'percona/pmm-server:2' } | |
- { mysql: 'percona:8.0', mongo: 'percona/percona-server-mongodb:4.4', postgres: 'perconalab/percona-distribution-postgresql:17-dev', pg_libs: 'pg_stat_statements,pg_stat_monitor', pmm_server: 'percona/pmm-server:2' } | |
# MariaDB (only 3 latest GA versions) | |
# + older supported MongoDB versions | |
# + older supported PostgreSQL versions | |
# + dev-latest PMM Server | |
# - MYSQL_IMAGE=mariadb:5.5 | |
# - MYSQL_IMAGE=mariadb:10.0 | |
# - MYSQL_IMAGE=mariadb:10.1 | |
- { mysql: 'mariadb:10.2', mongo: 'mongo:4.4', postgres: 'postgres:12', pmm_server: 'perconalab/pmm-server:dev-latest' } | |
- { mysql: 'mariadb:10.3', mongo: 'percona/percona-server-mongodb:4.4', postgres: 'postgres:13', pmm_server: 'perconalab/pmm-server:dev-latest' } | |
- { mysql: 'mariadb:10.4', postgres: 'postgres:14', pmm_server: 'perconalab/pmm-server:dev-latest' } | |
continue-on-error: true | |
env: | |
MYSQL_IMAGE: ${{ matrix.images.mysql }} | |
MONGO_IMAGE: ${{ matrix.images.mongo }} | |
POSTGRES_IMAGE: ${{ matrix.images.postgres }} | |
PMM_SERVER_IMAGE: ${{ matrix.images.pmm_server }} | |
PG_PRELOADED_LIBS: ${{ matrix.images.pg_libs }} | |
defaults: | |
run: | |
working-directory: ${{ github.workspace }}/agent | |
steps: | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Go release | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version-file: ${{ github.workspace }}/go.mod | |
cache: false | |
- name: Enable Go build cache | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
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@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
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: Launch containers | |
env: | |
ENV_UP_FLAGS: "--detach" | |
run: make env-up | |
- name: Run tests | |
run: make test-cover | |
- name: Upload coverage results | |
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1 | |
with: | |
file: cover.out | |
flags: agent | |
env_vars: MYSQL_IMAGE,MONGO_IMAGE,POSTGRES_IMAGE,PMM_SERVER_IMAGE | |
fail_ci_if_error: false | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Run debug commands on failure | |
if: ${{ failure() }} | |
run: | | |
env | |
go version | |
go env | |
pwd | |
git status |