Skip to content

Instantly share code, notes, and snippets.

@borodicht
Created January 12, 2026 10:05
Show Gist options
  • Select an option

  • Save borodicht/73a036e10d349fdafc03349359b75f85 to your computer and use it in GitHub Desktop.

Select an option

Save borodicht/73a036e10d349fdafc03349359b75f85 to your computer and use it in GitHub Desktop.
name: AI QA Pipeline
on:
push:
branches: [ "main", "master" ]
workflow_dispatch:
jobs:
ai-qa:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-${{ runner.os }}-
- name: Build project
run: mvn clean compile
- name: Run AI QA pipeline
env:
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
run: |
mkdir -p generated
mvn exec:java -Dexec.mainClass=PipelineMain
- name: Run generated tests
run: mvn test || true
- name: Upload AI artifacts
uses: actions/upload-artifact@v4
with:
name: ai-qa-artifacts
path: |
generated/
src/test/java/org/demo/generated/
target/surefire-reports/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment