-
Notifications
You must be signed in to change notification settings - Fork 27
46 lines (42 loc) · 1.28 KB
/
integration-tests-sqlserver.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Integration tests on SQL Server
on: # yamllint disable-line rule:truthy
push:
branches:
- main
- v*
jobs:
integration-tests-sqlserver:
name: Integration tests on SQL Server
strategy:
matrix:
sqlserver_version: ["2017", "2019", "2022"]
dbt_package:
["dbt_audit_helper", "dbt_date", "dbt_expectations", "dbt_utils"]
fail-fast: false
runs-on: ubuntu-latest
container:
image: ghcr.io/dbt-msft/dbt-sqlserver:CI-3.10-msodbc18
services:
sqlserver:
image: ghcr.io/dbt-msft/dbt-sqlserver:server-${{ matrix.sqlserver_version }}
env:
ACCEPT_EULA: "Y"
SA_PASSWORD: 5atyaNadella
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: pip install -r dev_requirements.txt
- name: Copy profiles
run: |
mkdir -p ~/.dbt
cp devops/ci/profiles.yml ~/.dbt/profiles.yml
- name: Run integration tests
run: |
dbt deps --target sqlserver
dbt seed --target sqlserver --full-refresh
dbt run --target sqlserver --full-refresh
dbt test --target sqlserver
working-directory: integration_tests/${{ matrix.dbt_package }}