Skip to content

Bump software.amazon.awssdk:sns from 2.20.133 to 2.20.149 #2278

Bump software.amazon.awssdk:sns from 2.20.133 to 2.20.149

Bump software.amazon.awssdk:sns from 2.20.133 to 2.20.149 #2278

Workflow file for this run

name: Github Actions Tests
on:
workflow_call:
pull_request:
permissions:
contents: read
jobs:
detect-secrets:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Detect secrets
uses: alphagov/pay-ci/actions/detect-secrets@master
integration-tests:
name: Unit and Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Set up JDK 11
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2
with:
java-version: '11'
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache pacts directory
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: target/pacts
key: ${{ runner.os }}-build-id-${{ github.head_ref }}-${{ github.sha }}-pacts
- name: Pull docker image dependencies
run: |
docker pull postgres:11.16
- name: Compile
run: mvn clean compile
- name: Check for OpenApi file changes
run: |
if [[ $(git status --porcelain) ]]; then
echo "Changes to the OpenApi file have not been committed. Run \`mvn compile\` on your branch to regenerate the file and then commit the changes."
exit 1
fi
- name: Run unit and integration tests
run: mvn verify
- name: Check for generated pacts
run: |
if [ ! -d target/pacts ]; then
echo "The pact files were not generated, this means that no pact results will be published and this build will fail to deploy"
exit 1
fi