Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Feb 17, 2022
1 parent 85bc3a1 commit 1de2289
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/integration-odbc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Integration ODBC

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
linux:
name: Test
runs-on: ubuntu-latest

services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu
ports:
- 1433:1433
env:
ACCEPT_EULA: Y
SA_PASSWORD: My@Test@Password1

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install ODBC Drivers
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
ln -s /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.*.so.* /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.so
shell: sudo bash {0}
- name: Setup Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
rustup component add rustfmt clippy
- uses: Swatinem/rust-cache@v1
- name: Test
run: cd arrow-odbc-integration-testing && cargo test

0 comments on commit 1de2289

Please sign in to comment.