Skip to content

Commit

Permalink
bump CI
Browse files Browse the repository at this point in the history
  • Loading branch information
luutuankiet committed Nov 24, 2024
1 parent 8c15625 commit 52558d8
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/slim_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: 8BitJonny/[email protected]
id: PR

- run: echo "PR=${prNumber}" >> $GITHUB_ENV
if: steps.PR.outputs.pr_found == 'true'
env:
prNumber: ${{ steps.PR.outputs.number }}

- name: debug
run: echo "$PR_schema"
env:
PR_schema: '"schema_name": "ci_PR_{{ env.PR }}"'


- uses: actions/checkout@v3

- uses: ./.github/actions/setup-env
Expand Down Expand Up @@ -67,25 +81,12 @@ jobs:
run: npm install -g "@lightdash/cli@${{ steps.version.outputs.value }}" || npm install -g @lightdash/cli@latest


- uses: 8BitJonny/[email protected]
id: PR

- run: echo "PR=${prNumber}" >> $GITHUB_ENV
if: steps.PR.outputs.pr_found == 'true'
env:
prNumber: ${{ steps.PR.outputs.number }}

- name: dbt build models
run: dbt build --target ci --vars "$PR_schema"
env:
PR_schema: '"schema_name": "ci_PR_$PR"'



- name: validate dbt models
run: dbt build --target ci --vars "$PR_schema"
env:
PR_schema: '"schema_name": "ci_PR_$PR"'
PR_schema: '"schema_name": "ci_PR_{{ env.PR }}"'


- name: validate LD
Expand All @@ -94,4 +95,4 @@ jobs:
LIGHTDASH_API_KEY: ${{ secrets.LIGHTDASH_API_KEY }}
LIGHTDASH_PROJECT: ${{ secrets.LIGHTDASH_PROJECT }}
LIGHTDASH_URL: ${{ secrets.LIGHTDASH_URL }}
run: lightdash validate
run: lightdash validate --target ci --vars "$PR_schema"

0 comments on commit 52558d8

Please sign in to comment.