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