Skip to content

Instantly share code, notes, and snippets.

@potatoqualitee
Last active Jul 25, 2021
Embed
What would you like to do?
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