From caf1cea73bc7ec55dc09f8dedd71bfd61882fd8e Mon Sep 17 00:00:00 2001 From: Ramachandran A G Date: Tue, 9 Jan 2024 16:34:19 +0530 Subject: [PATCH] * Add build file --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..735b4b95 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build Java +on: + push: + branches: [ '**' ] + pull_request: + branches: [ '**' ] +jobs: + build: + runs-on: ubuntu-latest + name: Setup Java 8, build and run tests + steps: + - uses: actions/checkout@v2 + - name: Setup java + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: 8 + cache: 'maven' + - name: Run the Maven verify phase + run: mvn clean verify -DkustoAadAppId=${{ secrets.APP_ID }} -DkustoAadAuthorityID=${{ secrets.TENANT_ID }} -DkustoAadAppSecret=${{ secrets.APP_SECRET }} -DkustoDatabase=${{ secrets.DATABASE }} -DkustoCluster=${{ secrets.CLUSTER }} + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + if: always() + with: + files: | + data/target/surefire-reports/*.xml + ingest/target/surefire-reports/*.xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 \ No newline at end of file