allows users to provide their own TokenCredential auth from azure-identity #1303
Workflow file for this run
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
# This workflow will install the dependencies, run tests and lint every push | |
name: Build Java | |
on: | |
push: | |
branches: [ 'master' ] | |
pull_request: | |
branches: [ '**' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: build | |
permissions: | |
checks: write | |
pull-requests: write | |
id-token: write | |
contents: read | |
strategy: | |
matrix: | |
java: ['8', '11','17','21'] | |
name: Java ${{ matrix.java }} | |
steps: | |
- name: Azure login | |
uses: azure/login@v2 | |
with: | |
client-id: ${{ secrets.APP_ID }} | |
tenant-id: ${{ secrets.TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
- uses: actions/checkout@v4 | |
- name: Setup java ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
- name: Run formatter | |
run: mvn formatter:validate | |
continue-on-error: true | |
- name: Run the Maven verify phase | |
run: mvn verify | |
env: | |
DM_CONNECTION_STRING: https://ingest-sdkse2etest.eastus.kusto.windows.net | |
ENGINE_CONNECTION_STRING: https://sdkse2etest.eastus.kusto.windows.net | |
TEST_DATABASE: e2e | |
APP_ID: ${{ secrets.APP_ID }} | |
TENANT_ID: ${{ secrets.TENANT_ID }} | |
CI_EXECUTION: 1 | |
- 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@v4 |