Skip to content

Detect CI environment and send associated data along with the test suite #37

Detect CI environment and send associated data along with the test suite

Detect CI environment and send associated data along with the test suite #37

name: Build and Test SDK
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test-sdk:
name: Build and Test SDK
runs-on: ubuntu-latest
env:
BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }}
BUILDKITE_ANALYTICS_DEBUG_ENABLED: ${{ secrets.BUILDKITE_ANALYTICS_DEBUG_ENABLED }}
GITHUB_ACTION: ${{ github.action }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_RUN_NUMBER: ${{ github.run_number }}
GITHUB_RUN_ATTEMPT: ${{ github.run_attempt }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF_NAME: ${{ github.ref_name }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_WORKFLOW: ${{ github.workflow }}
GITHUB_ACTOR: ${{ github.actor }}
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: zulu
java-version: 17
- name: Lint Project
run: "support/scripts/lint"
- name: Run SDK Unit Tests
run: "support/scripts/sdk-unit-tests"