From 3bc0b14acc6b00d55e51683806eb0cf50ad4285a Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Tue, 11 Feb 2020 18:21:33 +0100 Subject: [PATCH] chore(ci): skip java tests on most platforms (#5448) --- .github/workflows/test.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a2ea588002d7b..ec00295afd57ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,12 +15,18 @@ jobs: name: test runs-on: ${{ matrix.os }} + # tests shouldn't nee more than 10 min + timeout-minutes: 15 + strategy: - max-parallel: 4 + max-parallel: 6 matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node-version: [10.x, 12.x] + node-version: [10, 12] python-version: [3.8] + exclude: + - os: windows-latest + node-version: 10 steps: - name: Set up Node.js ${{ matrix.node-version }} @@ -34,10 +40,15 @@ jobs: python-version: ${{ matrix.python-version }} - name: Set up Java 11 + if: matrix.os == 'ubuntu-latest' && matrix.node-version == 12 && github.ref != 'refs/heads/master' uses: actions/setup-java@v1 with: java-version: 11 + - name: Skip Java tests + if: matrix.os != 'ubuntu-latest' || matrix.node-version != 12 || github.ref == 'refs/heads/master' + run: echo "::set-env name=SKIP_JAVA_TESTS::true" + - name: Init platform id: init shell: bash