Skip to content

Zh fix go mod tidy

Zh fix go mod tidy #1

Workflow file for this run

name: Main (test, releases)
on:
# # Indicates I want to run this workflow on all branches, PR, and tags
push:
branches: ["master"]
tags: ["*"]
pull_request:
branches: [ "master" ]
jobs:
lint:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
command:
- make vet
- make fmtcheck
steps:
- name: Checkout Git repo
uses: actions/checkout@v4
- name: Running ${{ matrix.command }}
run: ${{ matrix.command }}
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
target:
- testversion5.6
- testversion5.7
- testversion8.0
- testpercona5.7
- testpercona8.0
- testmariadb10.3
- testmariadb10.8
- testmariadb10.10
# Track https://github.com/pingcap/tidb/tags
- testtidb6.1.0
- testtidb6.5.3
# Fails because not yet available? 20240705
# - testtidb6.5.10
- testtidb7.1.5
- testtidb7.5.2
- testtidb8.1.0
steps:
- name: Checkout Git repo
uses: actions/checkout@v4
- name: Install mysql client
run: |
sudo apt-get update
sudo apt-get -f -y install mysql-client
- name: Run tests {{ matrix.target }}
run: make ${{ matrix.target }}
# DISABLED to figure out GPG signing issue on Github Actions
# possibly due to lack of TTY inside docker?
# release:
# name: Release
# needs: [tests]
# # Can't use non-semvar for the testing tag
# # https://github.com/orgs/goreleaser/discussions/3708
# if: ( startsWith( github.ref, 'refs/tags/v' ) ||
# startsWith(github.ref, 'refs/tags/v0.0.0-rc') )
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout Git repo
# uses: actions/checkout@v4
# # Goreleaser
# - name: Set up Go
# uses: actions/setup-go@v4
# - name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v6
# with:
# distribution: goreleaser
# version: '~> v2'
# # Run goreleaser and ignore non-committed files (downloaded artifacts)
# args: release --clean --skip=validate --verbose
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# terraform-provider-release:
# needs: [release]
# name: 'Terraform Provider Release'
# uses: hashicorp/ghaction-terraform-provider-release/.github/workflows/community.yml@v5
# secrets:
# gpg-private-key: '${{ secrets.GPG_PRIVATE_KEY }}'
# with:
# setup-go-version-file: 'go.mod'