mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
35 lines
787 B
YAML
35 lines
787 B
YAML
name: Code tests & eval
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build and test
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build FOSS variant
|
|
run: ./gradlew assembleFossDebug
|
|
- name: Test FOSS variant
|
|
run: ./gradlew testFossDebugUnitTest
|
|
|
|
- name: Build Google Play variant
|
|
run: ./gradlew assembleGplayDebug
|
|
- name: Test Google Play variant
|
|
run: ./gradlew testGplayDebugUnitTest
|