Code Monkey home page Code Monkey logo

tsqlt-installer's Introduction

tSQLt Installer Action

Windows Linux AzureSQL Lint

Description

A Github Action to install tSQLt on SQL Server and AzureSQL databases for unit testing.

Pull requests are welcome!

Action Type

Composite

Author

@lowlydba

Inputs

  • sql-instance:

    Description: Target SQL instance.

    Default: localhost

  • database:

    Description: Target database to install to.

    Default: master

  • user:

    Description: Optional user for SQL authentication.

  • password:

    Description: Optional password for SQL authentication.

  • version:

    Description: Version to install.

    Default: latest

  • create-database:

    Description: Create database if it doesn't exist.

    Default: false

  • update:

    Description: Uninstalls and reinstalls if tSQLt is already present.

    Default: false

Example Workflows

To install using Windows authentication:

on: [push]

jobs:
  windows-auth-tsqlt:
    name: Test installting tSQLt with Windows auth
    runs-on: windows-latest

  steps:
    - uses: actions/checkout@v2

    - name: Install SQL Server
      uses: potatoqualitee/[email protected]
      with:
        install: sqlengine

    - name: Install tSQLt with Windows auth
      uses: lowlydba/tsqlt-installer@v1
      with:
        sql-instance: localhost
        database: master
        version: latest

To install using SQL authentication:

on: [push]

jobs:
 sql-auth-tsqlt:
  name: Test installting tSQLt with SQL auth
  runs-on: ubuntu-latest
  services:
    sqlserver:
      image: mcr.microsoft.com/mssql/server:2019-latest
      ports:
        - 1433:1433
      env:
        ACCEPT_EULA: Y
        SA_PASSWORD: verystrongindeed

    steps:
      - uses: actions/checkout@v2

      - name: Install tSQLt with SQL auth
        uses: lowlydba/tsqlt-installer@v1
        with:
          sql-instance: localhost
          database: master
          version: latest
          user: sa
          password: verystrongindeed

Notes

  • Any invalid version strings are equal to latest
  • Known version strings:
    • 1-0-5873-27393 - For SQL 2005 and Azure SQL.
  • Ensure firewall exceptions are in place for Azure SQL targets.

tsqlt-installer's People

Contributors

dependabot[bot] avatar lowlydba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.