From 0b248c749e1beaf2e7fbb54012c41e4964c4e794 Mon Sep 17 00:00:00 2001 From: RockyKumar2020 <118820511+RockyKumar2020@users.noreply.github.com> Date: Mon, 6 Nov 2023 23:57:14 +0530 Subject: [PATCH 1/2] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 azure-pipelines.yml 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' From 4357558e839da36160ca211a3939a60e57799a87 Mon Sep 17 00:00:00 2001 From: RockyKumar2020 <118820511+RockyKumar2020@users.noreply.github.com> Date: Tue, 7 Nov 2023 13:10:29 +0530 Subject: [PATCH 2/2] Add workflow project1/RockyKumar2020.pipelines-java --- .../rockykumar2020.pipelines-java.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/rockykumar2020.pipelines-java.yml 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"