@@ -27,12 +27,25 @@ jobs:
|
27 | 27 | with:
|
28 | 28 | python-version: '3.9'
|
29 | 29 |
|
| 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 | + |
30 | 38 | - name: Install localstack & awslocal
|
31 | 39 | run: |
|
32 | 40 | pip install localstack
|
33 | 41 | pip install terraform-local
|
34 | 42 | pip install awscli-local
|
35 | 43 |
|
| 44 | + - name: Build project |
| 45 | +run: | |
| 46 | + cd shipment-picture-lambda-validator |
| 47 | +mvn clean package shade:shade |
| 48 | + |
36 | 49 | - name: Start LocalStack
|
37 | 50 | run: |
|
38 | 51 | docker pull localstack/localstack:latest
|
@@ -60,18 +73,18 @@ jobs:
|
60 | 73 | # exit 1
|
61 | 74 | # fi
|
62 | 75 |
|
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 }} |
75 | 88 |
|
76 | 89 | - name: Generate a Diagnostic Report
|
77 | 90 | if: failure()
|
|
0 commit comments