Skip to content

Commit 267b035

Browse files
committed
feat: download aggregated data from the s3 bucket during the report generation. closes #22
1 parent 4be8758 commit 267b035

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@ jobs:
2626
run: |
2727
pip install yq
2828
29+
- name: ⬇️ Download test data
30+
uses: keithweaver/[email protected]
31+
with:
32+
command: cp
33+
source: ${{ secrets.AWS_S3_BUCKET }}
34+
destination: /data/rewards-calculation-test-data
35+
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
36+
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
37+
aws_region: ${{ secrets.AWS_REGION }}
38+
flags: --recursive
39+
40+
- name: 🍀 Generate .env file
41+
run: |
42+
echo "SPRING_PROFILES_ACTIVE=ci" >> src/test/resources/.env
43+
echo "JSON_DATA_SOURCE_FOLDER=/data/rewards-calculation-test-data" >> src/test/resources/.env
44+
2945
- name: Build
3046
run: |
3147
mvn --batch-mode --update-snapshots clean package -DskipTests && mv target/rewards-*.jar target/rewards-calculation.jar

0 commit comments

Comments
 (0)