2021-03-16 12:19:16 +01:00
|
|
|
name: Build and Publish
|
2021-05-17 21:45:06 +02:00
|
|
|
on: [ pull_request ]
|
2021-03-16 12:19:16 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Test and Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# Setup Java 1.8 environment for the next steps
|
|
|
|
- name: Setup Java
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-05-15 22:34:16 +02:00
|
|
|
java-version: 15
|
2021-03-16 12:19:16 +01:00
|
|
|
|
|
|
|
# Check out current repository
|
|
|
|
- name: Fetch Sources
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
|
2021-05-15 22:34:16 +02:00
|
|
|
# Build Android application
|
|
|
|
- name: Android App
|
|
|
|
run: ./gradlew :android:build
|
|
|
|
|
|
|
|
# Build Desktop application
|
|
|
|
- name: Desktop App
|
|
|
|
run: ./gradlew :desktop:build
|
|
|
|
|
|
|
|
# Build Web application
|
|
|
|
- name: Web App
|
2021-03-16 12:19:16 +01:00
|
|
|
run: ./gradlew :web-app:build
|