Skip to content

Commit fd5aa1a

Browse files
committed
Use the pipierider compare github action
Signed-off-by: popcorny <celu@infuseai.io>
1 parent 8fd2fc8 commit fd5aa1a

File tree

1 file changed

+4
-40
lines changed

1 file changed

+4
-40
lines changed

.github/workflows/run.yml

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -30,46 +30,10 @@ jobs:
3030
run: |
3131
make load
3232
33-
- name: Run dbt + PipeRider for main branch
33+
- name: prepare target/manifest.json (workaround)
3434
run: |
35-
git fetch
36-
git checkout main
3735
dbt deps
38-
dbt run
39-
piperider run --dbt-state target/
36+
dbt compile
4037
41-
- name: Run dbt + PipeRider for current pull request
42-
run: |
43-
git fetch
44-
git checkout $GITHUB_HEAD_REF
45-
dbt deps
46-
dbt run
47-
piperider run --dbt-state target/
48-
49-
- name: Generate Comparison reports + Summary
50-
run: |
51-
piperider compare-reports --last
52-
pushd .piperider/comparisons/latest
53-
zip -r comparison-report.zip ./
54-
popd
55-
cp .piperider/comparisons/latest/summary.md comparison-report-summary.md
56-
cp .piperider/comparisons/latest/comparison-report.zip .
57-
58-
- uses: actions/upload-artifact@v3
59-
with:
60-
name: comparison-report-artifact
61-
path: comparison-report.zip
62-
63-
- name: Prepare Comparison Summary
64-
run: |
65-
echo "# :bar_chart: Piperider Comparison Summary" > summary.md
66-
cat comparison-report-summary.md >> summary.md
67-
echo -e "\n" >> summary.md
68-
echo "## :paperclip: Generated Comparison Report ZIP" >> summary.md
69-
echo "Find it in the [Github Action Runs Page](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> summary.md
70-
71-
- name: Create PR Comment
72-
uses: peter-evans/create-or-update-comment@v2.1.0
73-
with:
74-
issue-number: ${{ github.event.number }}
75-
body-file: summary.md
38+
- name: PipeRider Compare
39+
uses: InfuseAI/piperider-compare-action@v1

0 commit comments

Comments
 (0)