Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): skip java tests on most platforms #5448

Merged
merged 2 commits into from
Feb 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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