Skip to content

Ab2d-6412/sonarqube fix 2 #73

Ab2d-6412/sonarqube fix 2

Ab2d-6412/sonarqube fix 2 #73

name: opt-out-import unit tests
on:
pull_request:
paths:
- .github/workflows/opt-out-import-unit.yml
- optout/**
workflow_dispatch:
jobs:
test:
runs-on: self-hosted
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
defaults:
run:
working-directory: ./optout
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- 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: Run unit tests for opt-out-import lambda
run: ../gradlew test