Skip to content

Commit 5cd880b

Browse files
Staacksclaude
andcommitted
T0 CI workflow: unit tests with the conformance corpus.
Runs the JVM unit tests on push and pull_request with the public phyphox-docs repository checked out next to this repository, the layout the corpus tests expect. In CI the corpus is mandatory - a failed docs checkout fails the run; the tests' skip-with-notice path exists for plain local clones. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 35514db commit 5cd880b

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# T0 of the phyphox test strategy: JVM unit tests, including the conformance corpus from the
2+
# public phyphox-docs repository, which is checked out as a sibling of this repository - the
3+
# same layout the corpus lookup in app/src/test expects on a development machine. If that
4+
# checkout fails, the run fails: in CI the corpus is mandatory, the skip-with-notice path in
5+
# the tests exists for plain local clones without the sibling.
6+
name: tests
7+
on: [push, pull_request]
8+
jobs:
9+
t0:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 30
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
path: phyphox-android
16+
submodules: recursive
17+
- uses: actions/checkout@v4
18+
with:
19+
repository: phyphox/phyphox-docs
20+
path: phyphox-docs
21+
- uses: actions/setup-java@v4
22+
with:
23+
distribution: temurin
24+
java-version: 21
25+
cache: gradle
26+
- name: Unit tests
27+
run: cd phyphox-android && ./gradlew testRegularDebugUnitTest

0 commit comments

Comments
 (0)