forked from upstream-mirrors/quik
39 lines
881 B
YAML
39 lines
881 B
YAML
name: Build and Test on Pull Request
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Decode Keystore File
|
|
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > ${{ github.workspace }}/my-release-key.keystore
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- name: Build with Gradle
|
|
run: |
|
|
./gradlew assembleNoAnalyticsDebug \
|
|
-Dandroid.injected.signing.store.file=${{ github.workspace }}/my-release-key.keystore
|
|
|
|
- name: Run Tests
|
|
run: ./gradlew test
|
|
|
|
- name: Deploy Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build-artifacts
|
|
path: build/libs/
|