Skip to content

Bump com.amazonaws:aws-java-sdk-core from 1.12.368 to 1.12.696 #131

Bump com.amazonaws:aws-java-sdk-core from 1.12.368 to 1.12.696

Bump com.amazonaws:aws-java-sdk-core from 1.12.368 to 1.12.696 #131

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
services:
activemq-1:
image: symptoma/activemq:5.18.3
ports:
- 61616:61616
- 5672:5672
activemq-2:
image: symptoma/activemq:5.18.3
ports:
- 61617:61616
localstack:
image: localstack/localstack:2.3.2
ports:
- "4566:4566"
env:
SERVICES: sqs,sns,dynamodb,s3
DEFAULT_REGION: eu-west-2
HOSTNAME_EXTERNAL: localstack
volumes:
- "/var/lib/localstack:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'adopt'
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
NHS_ENVIRONMENT: 'dev'
AWS_REGION: 'eu-west-2'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: ./gradlew build sonar --info