transition expect_error()
for snowflake backend
#1508
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: mssql | |
jobs: | |
mssql: | |
runs-on: ubuntu-latest | |
services: | |
sqlserver: | |
image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu | |
ports: | |
- 1433:1433 | |
env: | |
ACCEPT_EULA: Y | |
SA_PASSWORD: Password12 | |
env: | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
GITHUB_MSSQL: true | |
ODBCSYSINI: ${{ github.workspace }}/.github/odbc | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::rcmdcheck | |
needs: check | |
- name: Install SQL Server driver | |
run: | | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | |
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list | |
apt-get update | |
ACCEPT_EULA=Y apt-get install -y msodbcsql17 | |
sqlcmd -U SA -P 'Password12' -Q 'CREATE DATABASE test;' | |
dpkg -L msodbcsql17 | |
shell: sudo bash {0} | |
- name: Check drivers | |
run: odbc::odbcListDrivers() | |
shell: Rscript {0} | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true |