ci: add Gitea Actions workflow (.gitea/workflows/ci.yaml) and test utilities
Gitea Actions CI/CD Pipeline / build-and-test (push) Failing after 2m34s

This commit is contained in:
2026-08-10 08:31:51 +00:00
parent d449469116
commit a6add57d4d
3 changed files with 43 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
name: Gitea Actions CI/CD Pipeline
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Grant Execute Permission for Gradlew
run: chmod +x gradlew
- name: Run Unit Tests
run: ./gradlew test --stacktrace
- name: Build Debug APK
run: ./gradlew assembleDebug --stacktrace
+7
View File
@@ -0,0 +1,7 @@
# Tests Directory
このディレクトリには単体テストおよび各種自動検証スクリプトが配置されています。
## テスト実行手順
1. ローカル実行: `./tests/run_tests.sh` または `./gradlew test`
2. Docker コンテナ内実行: `docker-compose run test`
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
echo "=== Running Voice Controlled Device Unit Tests ==="
./gradlew test --stacktrace
echo "=== All Tests Passed Successfully ==="