fix: stop mobile overflow, clarify copy button #51
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: stable | |
| cache: true | |
| - uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.12.2 | |
| test: | |
| name: Test (${{ matrix.os }}) | |
| needs: lint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: stable | |
| cache: true | |
| - name: go vet | |
| run: go vet ./... | |
| # `./...` skips underscore-prefixed dirs, so name the _mysqlcommon package | |
| # explicitly by import path to run its unit tests. Use the import path (not | |
| # a `_*` shell glob) so it works on PowerShell (Windows) as well as bash. | |
| - name: go test | |
| run: go test ./... github.com/nixrajput/siphon/internal/driver/_mysqlcommon | |
| # Integration tests use testcontainers, which needs a Docker daemon. | |
| # Only ubuntu-latest runners have Docker available by default, so the | |
| # DB client install and integration suite are scoped to Ubuntu. | |
| # macOS/Windows run unit tests only (the integration-tagged files that | |
| # shell out to the client binaries are tagged out of the unit build). | |
| - name: Install DB client tools (integration, Ubuntu only) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| # postgresql-client -> pg_dump/pg_restore ; mysql-client -> mysqldump/mysql | |
| sudo apt-get install -y postgresql-client mysql-client | |
| # Ubuntu's mariadb-client Conflicts with mysql-client-core, so it can't | |
| # co-install. Pull mariadb-dump/mariadb from MariaDB's official APT repo | |
| # (the repo's mariadb-client is built to coexist with MySQL's client). | |
| curl -fsSL https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash | |
| sudo apt-get update | |
| sudo apt-get install -y mariadb-client | |
| - name: Integration tests (Ubuntu only — needs Docker) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: go test -tags=integration ./... github.com/nixrajput/siphon/internal/driver/_mysqlcommon |