PMM-13748 gssapi support (#1042) #2839
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: Go | |
on: | |
schedule: | |
# run every Sunday | |
- cron: '0 13 * * 0' | |
push: | |
branches: | |
- main | |
- release-0.1x | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- mongo:4.4 | |
- mongo:5.0 | |
- mongo:6.0 | |
- mongo:7.0 | |
- mongo:8.0 | |
- mongo:latest | |
- percona/percona-server-mongodb:4.4 | |
- percona/percona-server-mongodb:5.0 | |
- percona/percona-server-mongodb:6.0 | |
- percona/percona-server-mongodb:7.0 | |
- percona/percona-server-mongodb:latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Go | |
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | |
with: | |
go-version-file: ${{ github.workspace }}/go.mod | |
- name: Install kerberos development libraries | |
run: | | |
sudo apt-get update | |
sudo apt-get install libkrb5-dev | |
- name: Run tests with code coverage | |
run: | | |
TEST_MONGODB_IMAGE=${{ matrix.image }} make test-cluster | |
sleep 10 | |
make test-cover | |
make test-cluster-clean | |
- name: Upload coverage results | |
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2 | |
with: | |
file: cover.out | |
flags: agent | |
env_vars: GO_VERSION,TEST_MONGODB_IMAGE | |
fail_ci_if_error: false | |
- name: Run debug commands on failure | |
if: ${{ failure() }} | |
run: | | |
echo "--- Environment variables ---" | |
env | sort | |
echo "--- GO Environment ---" | |
go env | sort | |
echo "--- Git status ---" | |
git status | |
echo "--- Docker logs ---" | |
docker compose logs | |
echo "--- Docker ps ---" | |
docker compose ps -a |