Skip to content

feat: add MariaDB 10.6/10.11/11.4/11.7/11.8 and Percona Server 5.7/8.… #272

feat: add MariaDB 10.6/10.11/11.4/11.7/11.8 and Percona Server 5.7/8.…

feat: add MariaDB 10.6/10.11/11.4/11.7/11.8 and Percona Server 5.7/8.… #272

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
- name: govulncheck (informational)
continue-on-error: true
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
- name: Copyright check
run: ./scripts/sanity_check.sh copyright
test:
name: Test (Go ${{ matrix.go-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go-version: ['1.22', '1.23']
os: [ubuntu-latest, macos-latest]
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install libraries (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libncurses6 libaio1t64 libnuma1 bash-completion
- name: Unit tests
run: ./test/go-unit-tests.sh
build:
name: Build
runs-on: ubuntu-latest
needs: [lint, test]
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build
run: ./scripts/build.sh linux
- name: Verify executable
run: |
version=$(cat common/VERSION)
test -f "dbdeployer-${version}.linux" || exit 1