Skip to content

Main

Main #84

Workflow file for this run

name: Main
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 0 * * 6'
workflow_dispatch:
jobs:
main:
runs-on: ${{ matrix.image }}
strategy:
matrix:
image: [ macos-12, ubuntu-20.04, windows-2019 ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 16
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
- name: Build
run: ./gradlew build
- name: Upload test results
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}.test-reports
path: build/reports/tests