Create gradle.yml

This commit is contained in:
cato
2022-06-05 11:59:20 +02:00
committed by GitHub
parent 7d31835d1a
commit 2873752bf4

30
.github/workflows/gradle.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Run Tests on PRs into Code branches
on:
push:
pull_request:
branches: [ "dev", "main" ]
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
- name: Setup and execute Gradle 'test' task
uses: gradle/gradle-build-action@v2
with:
arguments: test