Skip to content

Commit

Permalink
chore(ci): skip java tests on most platforms (#5448)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Feb 11, 2020
1 parent 1e0163a commit 3bc0b14
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 3bc0b14

Please sign in to comment.