diff --git a/.github/workflows/rockykumar2020.pipelines-java.yml b/.github/workflows/rockykumar2020.pipelines-java.yml new file mode 100644 index 000000000..149c08744 --- /dev/null +++ b/.github/workflows/rockykumar2020.pipelines-java.yml @@ -0,0 +1,28 @@ +name: project1/RockyKumar2020.pipelines-java +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4.1.0 + - name: Setup Java 8 + uses: actions/setup-java@v3.13.0 + with: + distribution: zulu + java-version: '8' + - name: Run maven + run: mvn --file pom.xml package + env: + MAVEN_OPTS: "-Xmx3072m" + - name: Publish test results + uses: EnricoMi/publish-unit-test-result-action@v2.11.0 + if: always() + with: + junit_files: "**/surefire-reports/TEST-*.xml" diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..7438c7453 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,22 @@ +# Maven +# Build your Java project and run tests with Apache Maven. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/java + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package'