Skip to content

refactor: update documentation links for clarity and consistency; enh… #20

refactor: update documentation links for clarity and consistency; enh…

refactor: update documentation links for clarity and consistency; enh… #20

Workflow file for this run

name: "Build & Test"
env:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
on:
schedule:
# Run once a day at 00:00 UTC
- cron: '0 0 * * *'
push:
branches: [main]
pull_request:
workflow_dispatch:
merge_group:
permissions:
contents: read
jobs:
java-sdk:
name: "Java SDK Tests"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-copilot
- uses: actions/setup-java@v5
with:
java-version: "17"
distribution: "temurin"
- name: Run spotless check
run: |
mvn spotless:check
if [ $? -ne 0 ]; then
echo "❌ spotless:check failed. Please run 'mvn spotless:apply' in java"
exit 1
fi
echo "✅ spotless:check passed"
- name: Build SDK
run: mvn compile
- name: Run Java SDK tests
env:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
COPILOT_CLI_PATH: ${{ steps.cli-path.outputs.path }}
run: mvn verify