Skip to content

Spring boot upgrade #273

Spring boot upgrade

Spring boot upgrade #273

Workflow file for this run

name: Test
on:
push:
branches-ignore:
- 'main'
workflow_dispatch:
jobs:
test:
runs-on: self-hosted
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Set Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.4.2
- name: Set env vars from AWS params
uses: cmsgov/ab2d-bcda-dpc-platform/actions/aws-params-env-action@main
env:
AWS_REGION: ${{ vars.AWS_REGION }}
with:
params: |
ARTIFACTORY_URL=/artifactory/url
ARTIFACTORY_USER=/artifactory/user
ARTIFACTORY_PASSWORD=/artifactory/password
SONAR_HOST_URL=/sonarqube/url
SONAR_TOKEN=/sonarqube/token
- name: Clean project
run: gradle clean
- name: Run tests
run: gradle test ${RUNNER_DEBUG:+"--debug"}
- name: SonarQube analysis
run: gradle sonar -Dsonar.host.url=$SONAR_HOST_URL
- name: SonarQube Quality Gate check
id: sonarqube-quality-gate-check
uses: sonarsource/sonarqube-quality-gate-action@master
with:
scanMetadataReportFile: build/sonar/report-task.txt
timeout-minutes: 5