ci: add Gitea Actions workflow (.gitea/workflows/ci.yaml) and test utilities
Gitea Actions CI/CD Pipeline / build-and-test (push) Failing after 2m34s
Gitea Actions CI/CD Pipeline / build-and-test (push) Failing after 2m34s
This commit is contained in:
@@ -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
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Tests Directory
|
||||||
|
|
||||||
|
このディレクトリには単体テストおよび各種自動検証スクリプトが配置されています。
|
||||||
|
|
||||||
|
## テスト実行手順
|
||||||
|
1. ローカル実行: `./tests/run_tests.sh` または `./gradlew test`
|
||||||
|
2. Docker コンテナ内実行: `docker-compose run test`
|
||||||
Executable
+6
@@ -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 ==="
|
||||||
Reference in New Issue
Block a user