{"id":25858839,"url":"https://github.com/lowlydba/tsqlt-installer","last_synced_at":"2025-03-01T20:36:21.448Z","repository":{"id":38299180,"uuid":"497698755","full_name":"lowlydba/tsqlt-installer","owner":"lowlydba","description":"🔵 Github Action to install tSQLt.","archived":false,"fork":false,"pushed_at":"2023-12-12T01:37:43.000Z","size":34,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-16T11:41:36.432Z","etag":null,"topics":["github-actions","github-actions-ci","mssql","sqlserver","tsqlt","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lowlydba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-29T20:11:21.000Z","updated_at":"2024-03-20T07:26:48.000Z","dependencies_parsed_at":"2023-01-11T17:21:29.446Z","dependency_job_id":null,"html_url":"https://github.com/lowlydba/tsqlt-installer","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowlydba%2Ftsqlt-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowlydba%2Ftsqlt-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowlydba%2Ftsqlt-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowlydba%2Ftsqlt-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lowlydba","download_url":"https://codeload.github.com/lowlydba/tsqlt-installer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241422938,"owners_count":19960592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","github-actions-ci","mssql","sqlserver","tsqlt","unit-testing"],"created_at":"2025-03-01T20:36:20.789Z","updated_at":"2025-03-01T20:36:21.433Z","avatar_url":"https://github.com/lowlydba.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tSQLt Installer Action\n\n[![Windows](https://github.com/lowlydba/tsqlt-installer/actions/workflows/windows.yml/badge.svg)](https://github.com/lowlydba/tsqlt-installer/actions/workflows/windows.yml)\n[![Linux](https://github.com/lowlydba/tsqlt-installer/actions/workflows/linux.yml/badge.svg)](https://github.com/lowlydba/tsqlt-installer/actions/workflows/linux.yml)\n[![AzureSQL](https://github.com/lowlydba/tsqlt-installer/actions/workflows/azuresql.yml/badge.svg)](https://github.com/lowlydba/tsqlt-installer/actions/workflows/azuresql.yml)\n[![Lint](https://github.com/lowlydba/tsqlt-installer/actions/workflows/linter.yml/badge.svg)](https://github.com/lowlydba/tsqlt-installer/actions/workflows/linter.yml)\n\n## Description\n\nA Github Action to install [tSQLt](https://github.com/tSQLt-org/tSQLt) on SQL Server and AzureSQL databases for unit testing.\n\nPull requests are welcome!\n\n## Action Type\n\nComposite\n\n## Author\n\n[@lowlydba](https://github.com/lowlydba)\n\n## Inputs\n\n* `sql-instance`:\n\n    *Description*: Target SQL instance.\n\n    *Default*: `localhost`\n\n* `database`:\n\n    *Description*: Target database to install to.\n\n    *Default*: `master`\n\n* `user`:\n\n    *Description*: Optional user for SQL authentication.\n\n* `password`:\n\n    *Description*: Optional password for SQL authentication.\n\n* `version`:\n\n    *Description*: Version to install.\n\n    *Default*: `latest`\n\n* `create-database`:\n\n    *Description*: Create database if it doesn't exist.\n\n    *Default*: `false`\n\n* `update`:\n\n    *Description*: Uninstalls and reinstalls if tSQLt is already present.\n\n    *Default*: `false`\n\n## Example Workflows\n\nTo install using Windows authentication:\n\n```yml\non: [push]\n\njobs:\n  windows-auth-tsqlt:\n    name: Test installting tSQLt with Windows auth\n    runs-on: windows-latest\n\n  steps:\n    - uses: actions/checkout@v2\n\n    - name: Install SQL Server\n      uses: potatoqualitee/mssqlsuite@v1.4\n      with:\n        install: sqlengine\n\n    - name: Install tSQLt with Windows auth\n      uses: lowlydba/tsqlt-installer@v1\n      with:\n        sql-instance: localhost\n        database: master\n        version: latest\n```\n\nTo install using SQL authentication:\n\n```yml\non: [push]\n\njobs:\n sql-auth-tsqlt:\n  name: Test installting tSQLt with SQL auth\n  runs-on: ubuntu-latest\n  services:\n    sqlserver:\n      image: mcr.microsoft.com/mssql/server:2019-latest\n      ports:\n        - 1433:1433\n      env:\n        ACCEPT_EULA: Y\n        SA_PASSWORD: verystrongindeed\n\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: Install tSQLt with SQL auth\n        uses: lowlydba/tsqlt-installer@v1\n        with:\n          sql-instance: localhost\n          database: master\n          version: latest\n          user: sa\n          password: verystrongindeed\n```\n\n## Notes\n\n* Any invalid version strings are equal to `latest`\n* Known version strings:\n  * `1-0-5873-27393` - For SQL 2005 and Azure SQL.\n* Ensure firewall exceptions are in place for Azure SQL targets.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowlydba%2Ftsqlt-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flowlydba%2Ftsqlt-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowlydba%2Ftsqlt-installer/lists"}