-
Notifications
You must be signed in to change notification settings - Fork 5
70 lines (56 loc) · 1.68 KB
/
ci.yml
File metadata and controls
70 lines (56 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
jvm-tests:
name: JVM + Android Tests (ubuntu, JDK 21)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Create local.properties
run: |
cat > local.properties << 'EOF'
anthropic_api_key=placeholder
google_api_key=placeholder
openai_api_key=placeholder
EOF
- name: Run ktlint
timeout-minutes: 10
run: ./gradlew ktlintCheck
- name: Run JVM + Android tests
timeout-minutes: 20
run: ./gradlew :ampere-core:jvmTest :ampere-core:testDebugUnitTest :ampere-cli:jvmTest :ampere-compose:jvmTest :ampere-compose:testDebugUnitTest
ios-tests:
name: iOS Simulator Tests (macos, JDK 21)
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Create local.properties
run: |
cat > local.properties << 'EOF'
anthropic_api_key=placeholder
google_api_key=placeholder
openai_api_key=placeholder
EOF
- name: Run iOS simulator tests
timeout-minutes: 25
run: ./gradlew :ampere-core:iosSimulatorArm64Test