{"id":28462189,"url":"https://github.com/biemannt/action-sql-db-test","last_synced_at":"2026-05-15T22:31:36.034Z","repository":{"id":297512974,"uuid":"997034832","full_name":"BiemannT/Action-SQL-DB-Test","owner":"BiemannT","description":"GitHub Action to test a MS SQL database.","archived":false,"fork":false,"pushed_at":"2025-06-06T20:07:51.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T14:45:21.717Z","etag":null,"topics":["action","mssql","sql","sql-server","test-automation"],"latest_commit_sha":null,"homepage":"","language":null,"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/BiemannT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-05T21:08:58.000Z","updated_at":"2025-06-06T19:53:15.000Z","dependencies_parsed_at":"2025-06-05T22:39:06.022Z","dependency_job_id":null,"html_url":"https://github.com/BiemannT/Action-SQL-DB-Test","commit_stats":null,"previous_names":["biemannt/action-sql-db-test"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BiemannT/Action-SQL-DB-Test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiemannT%2FAction-SQL-DB-Test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiemannT%2FAction-SQL-DB-Test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiemannT%2FAction-SQL-DB-Test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiemannT%2FAction-SQL-DB-Test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BiemannT","download_url":"https://codeload.github.com/BiemannT/Action-SQL-DB-Test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiemannT%2FAction-SQL-DB-Test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278526234,"owners_count":26001325,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["action","mssql","sql","sql-server","test-automation"],"created_at":"2025-06-07T04:08:26.725Z","updated_at":"2025-10-05T21:36:24.506Z","avatar_url":"https://github.com/BiemannT.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL DB Test\nThis GitHub Action installs the tools `sqlcmd` and `sqlpackage` on the runner to test a Microsoft SQL-Server database based on a dacpac-file.\n\n\u003e [!NOTE]\n\u003e This action is only working on a linux runner.\n\u003e\n\u003e The intention of this action is to use it in conjunction with a service defined in the workflow file. Due to the limitation of the GitHub Runners, the service context is not available on windows or macos runners.\n\n# Usage\n\n```yml\n- uses: BiemannT/Action-SQL-DB-Test@v1\n  with:\n    # REQUIRED\n    # The password for the SQL-Server administrator login sa.\n    sql-sa-pw: ''\n\n    # OPTIONAL\n    # The absolute path to the folder, where the dacpac-file is located.\n    # If no path is given, the action will abort after the setup of the packages.\n    sqlpackage-path: ''\n\n    # OPTIONAL\n    # The name of the database, which will be used for publishing of the dacpac-file on the SQL-Server.\n    # Default: TestDB\n    db-name: ''\n```\n\n\u003e [!TIP]\n\u003e After the installation of the required packages, the commands `sqlcmd` and `sqlpackage` are provided in the `$GITHUB_PATH` variable and therefore can be executed from the command line directly.\n\nThis action will wait until the SQL-Server is ready to use. Then the dacpac-file will be published to the SQL-Server, if the variable `sqlpackage-path` is set and a dacpac-file is located in this path.\n\nWhen the action is finished, the used dacpac-file can be used for further steps by using the output variable `package-file`.\n\n# Example\nThe following example shows the usage of this action in a workflow file:\n\n```yml\njobs:\n  test:\n    runs-on: ubuntu-latest\n\n    env:\n      DACPAC-PATH: ${{ github.workspace }}/build\n      SQLPW: Test4Ever\n      DBNAME: Test\n\n    services:\n      sql:\n        image: mcr.microsoft.com/mssql/server:2017-latest\n        # Alternative images:\n        # SQL-Server 2019: mcr.microsoft.com/mssql/server:2019-latest\n        # SQL-Server 2022: mcr.microsoft.com/mssql/server:2022-latest\n\n        ports:\n          - 1433:1433\n\n        env:\n          ACCEPT_EULA: Y\n          MSSQL_PID: Express # Optional\n          MSSQL_LCID: 1031 # German, adopt to your need\n          MSSQL_MEMORY_LIMIT_MB: 1024\n          MSSQL_SA_PASSWORD: ${{ env.SQLPW }}\n          TZ: Europe/Berlin # Adopt timezone to your need\n\n        steps:\n          - name: build\n            # Create or fetch the dacpac-file to the path given in the environment variable DACPAC-PATH.\n\n          - name: Test Database\n            uses: BiemannT/Action-SQL-DB-Test@v1\n            id: testdb\n            with:\n              sql-sa-pw: ${{ env.SQLPW }}\n              sqlpackage-path: ${{ env.DACPAC-PATH }}\n              db-name: ${{ env.DBNAME }}\n\n          - name: Further Test with dacpac-file\n            run: ...\n              # The used dacpac-file is available from the following variable: ${{ steps.testdb.outputs.package-file }}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiemannt%2Faction-sql-db-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiemannt%2Faction-sql-db-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiemannt%2Faction-sql-db-test/lists"}