Last active
July 25, 2021 19:58
-
-
Save potatoqualitee/df91714db548a269328db599f35f5ca2 to your computer and use it in GitHub Desktop.
sql demo.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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