From 92e8265af1478fd49649e11509928f9d3f325eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Basl=C3=A9?= Date: Fri, 25 Oct 2019 10:59:06 +0200 Subject: [PATCH] [build] Check Matrix github action This Action performs tests (clean check) in all three OS using NIO, plus an additional run with epoll on Linux and an additional run with KQueue on OSX. It replaces the former Java CI action. --- .github/workflows/check_transport.yml | 28 +++++++++++++++++++++++++++ .github/workflows/gradle.yml | 22 --------------------- 2 files changed, 28 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/check_transport.yml delete mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/check_transport.yml b/.github/workflows/check_transport.yml new file mode 100644 index 0000000000..7ddb9e6c18 --- /dev/null +++ b/.github/workflows/check_transport.yml @@ -0,0 +1,28 @@ +name: Check Matrix + +on: [push, pull_request] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + transport: [native, nio] + exclude: + # excludes native on Windows (there's none) + - os: windows-latest + transport: native + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Gradle +# IF WE NEED TO TEST DIFFERENT VERSIONS OF NETTY, WE CAN ADD forceNettyVersion TO THE MATRIX +# run: ./gradlew check -PforceTransport=${{ matrix.transport }} -PforceNettyVersion=${{ matrix.netty }} + run: ./gradlew clean check -PforceTransport=${{ matrix.transport }} \ No newline at end of file diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml deleted file mode 100644 index c52e9247cc..0000000000 --- a/.github/workflows/gradle.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Java CI - -on: [push, pull_request] - -jobs: - build: - - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - fail-fast: false - - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Gradle - run: ./gradlew clean build \ No newline at end of file