mirror of
https://github.com/mattintech/AndroidTestApp.git
synced 2026-07-11 12:01:53 +00:00
removing generic CI workflow
This commit is contained in:
49
.github/workflows/android-ci.yml
vendored
49
.github/workflows/android-ci.yml
vendored
@@ -1,49 +0,0 @@
|
|||||||
# GitHub Actions workflow for continuous integration
|
|
||||||
# This workflow runs on pull requests to validate code quality
|
|
||||||
|
|
||||||
name: Android CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches: [ main, develop ]
|
|
||||||
push:
|
|
||||||
branches: [ develop ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
name: Run Tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up JDK 17
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
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
|
|
||||||
|
|
||||||
- name: Run lint
|
|
||||||
run: ./gradlew lint
|
|
||||||
|
|
||||||
- name: Upload test results
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: test-results
|
|
||||||
path: app/build/test-results/
|
|
||||||
|
|
||||||
- name: Upload lint results
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: lint-results
|
|
||||||
path: app/build/reports/lint-results-*.html
|
|
||||||
Reference in New Issue
Block a user