-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (34 loc) · 1.31 KB
/
BuildAndValidateTabularModel.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
name: BuildAndValidateTabularModel
on:
# Triggers the workflow on push or pull request events but only for the main branch
#push:
# branches: [ main ]
#pull_request:
# branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
validation:
runs-on: windows-latest
environment: Dev
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Download Tabular Editor 2.x
shell: pwsh
run: .\Scripts\DownloadTE2.ps1
- name: Run a Best Practice Analysis
shell: cmd
run: TabularEditor.exe .\AdventureWorks -A -G
#
# - name: Perform data source schema scheck
# shell: cmd
# env:
# SQLDW_CONNECTIONSTRING: ${{ secrets.SQLDW_CONNECTIONSTRING }}
# run: TabularEditor.exe .\AdventureWorks -S ".\Scripts\ReplaceDataSourceConnectionString.csx" -SC -G
- name: Deploy to Power BI
shell: cmd
env:
SQLDW_CONNECTIONSTRING: ${{ secrets.SQLDW_CONNECTIONSTRING }}
AS_CONNECTIONSTRING: ${{ secrets.AS_CONNECTIONSTRING }}
run: TabularEditor.exe .\AdventureWorks -S ".\Scripts\ReplaceDataSourceConnectionString.csx" -D "%AS_CONNECTIONSTRING%" ValidationDataset -O -C -G -E -W