Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 10 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,56 +8,30 @@ on:

jobs:
build:
runs-on: ubuntu-latest
# we want to run ubuntu-latest but we'll pin to a specific version so CI is reproducable
runs-on: ubuntu-24.04
strategy:
matrix:
java: [ '17', '21' ]
java: [ '17' ] # Java is

steps:
- uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Check code formatting
run: ./gradlew spotlessCheck

- name: Build with Gradle
run: ./gradlew build

- name: Run tests
run: ./gradlew test


- name: Run all checks and tests
run: ./gradlew compileTestJava check

- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-java-${{ matrix.java }}
path: build/test-results/test/

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Check code formatting
run: ./gradlew spotlessCheck

- name: Run static analysis
run: ./gradlew check
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'dev.braintrust'
version = '0.1.0-SNAPSHOT'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = JavaVersion.VERSION_17
Expand Down
Loading