File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,25 @@ jobs:
2727
with:
2828
python-version: '3.9'
2929

30+
- name: Set up JDK
31+
uses: actions/setup-java@v2
32+
with:
33+
java-version: '17'
34+
35+
- name: Set up Maven
36+
run: sudo apt-get install -y maven
37+
3038
- name: Install localstack & awslocal
3139
run: |
3240
pip install localstack
3341
pip install terraform-local
3442
pip install awscli-local
3543
44+
- name: Build project
45+
run: |
46+
cd shipment-picture-lambda-validator
47+
mvn clean package shade:shade
48+
3649
- name: Start LocalStack
3750
run: |
3851
docker pull localstack/localstack:latest
@@ -60,18 +73,18 @@ jobs:
6073
# exit 1
6174
# fi
6275

63-
- name: Send a Slack notification
64-
if: failure() || .event_name != 'pull_request'
65-
uses: ravsamhq/notify-slack-action@v2
66-
with:
67-
status: ${{ job.status }}
68-
token: ${{ secrets._TOKEN }}
69-
notification_title: "{workflow} has {status_message}"
70-
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
71-
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Workflow run>"
72-
notify_when: "failure"
73-
env:
74-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
76+
# - name: Send a Slack notification
77+
# if: failure() || .event_name != 'pull_request'
78+
# uses: ravsamhq/notify-slack-action@v2
79+
# with:
80+
# status: ${{ job.status }}
81+
# token: ${{ secrets._TOKEN }}
82+
# notification_title: "{workflow} has {status_message}"
83+
# message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
84+
# footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Workflow run>"
85+
# notify_when: "failure"
86+
# env:
87+
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
7588

7689
- name: Generate a Diagnostic Report
7790
if: failure()

0 commit comments

Comments
 (0)