Merge pull request #147 from zowe/upgrade-spring-framework-5.3.30-tom… #202
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Testing | |
on: | |
push: | |
branches: | |
- v1.x/master | |
- v2.x/master | |
pull_request: | |
branches: | |
- v1.x/master | |
- v2.x/master | |
workflow_dispatch: | |
jobs: | |
BuildAndTest: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: ./.github/actions/setup | |
- name: Build with Gradle | |
run: > | |
./gradlew build | |
- name: Test with Gradle | |
run: > | |
./gradlew test | |
- uses: ./.github/actions/teardown | |
sonarQubeScan: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: ./.github/actions/setup | |
with: | |
jdkVersion: 11 | |
- name: Sonar scan with Gradle | |
run: > | |
./gradlew --info coverage sonarqube | |
-Psonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN | |
-Partifactory_user=$ARTIFACTORY_USERNAME -Partifactory_password=$ARTIFACTORY_PASSWORD | |
env: | |
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- uses: ./.github/actions/teardown |