JavaAlgorithms/.github/workflows/gradle.yml

42 lines
971 B
YAML
Raw Normal View History

2020-01-04 18:04:48 +08:00
name: Java gradle CI
2020-09-17 09:17:36 +08:00
on:
push:
branches:
- Development
pull_request:
branches:
- Development
2020-01-04 18:04:48 +08:00
jobs:
test:
name: Test algorithms
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: [1.8, 11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
ref: Development
- name: Set up jdk
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: JUnit5 tests on ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: |
chmod +x gradlew
./gradlew clean test
- name: JUnit5 tests on macos
if: startsWith(matrix.os, 'macos')
run: |
chmod +x gradlew
./gradlew clean test
- name: JUnit5 tests on windows
if: startsWith(matrix.os, 'windows')
run: gradle clean test