-
Notifications
You must be signed in to change notification settings - Fork 31
40 lines (35 loc) · 1.21 KB
/
test.yml
File metadata and controls
40 lines (35 loc) · 1.21 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
name: myPlanet test
on:
push:
branches:
- '*'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: myPlanet test
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
build: [default]
steps:
- name: checkout repository code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: setup gradle
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: wrapper
- name: run unit tests
shell: bash
env:
GRADLE_BUILD_CACHE_URL: ${{ secrets.GRADLE_BUILD_CACHE_URL }}
GRADLE_BUILD_CACHE_USER: ${{ secrets.GRADLE_BUILD_CACHE_USER }}
GRADLE_BUILD_CACHE_PASS: ${{ secrets.GRADLE_BUILD_CACHE_PASS }}
GRADLE_BUILD_CACHE_PUSH: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/claude/') || startsWith(github.ref, 'refs/heads/jules/') || startsWith(github.ref, 'refs/heads/codex/') || startsWith(github.ref, 'refs/heads/copilot/') }}
run: |
FLAVOR=${{ matrix.build }}
./gradlew test${FLAVOR^}DebugUnitTest --configuration-cache-problems=warn --warning-mode all --stacktrace --parallel --max-workers=4