Skip to content

Instantly share code, notes, and snippets.

@potatoqualitee
Last active July 25, 2021 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save potatoqualitee/df91714db548a269328db599f35f5ca2 to your computer and use it in GitHub Desktop.
Save potatoqualitee/df91714db548a269328db599f35f5ca2 to your computer and use it in GitHub Desktop.
sql demo.yml
name: Test sqlcmd against SQL Server container
on: [push, pull_request]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download and start the container (aka.ms/sqlcontainers)
run: docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=dbatools.I0" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
- name: Run sqlcmd
run: sqlcmd -S localhost -U sa -P dbatools.I0 -d tempdb -i ./tests.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment