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
|
||||
Reference in New Issue
Block a user