Skip to content

Commit

Permalink
ci: disable macos and use node v14 (#8026)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Dec 15, 2020
1 parent 14efef0 commit 2727eec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ env:
YARN_MODULES_CACHE_KEY: v1
YARN_PACKAGE_CACHE_KEY: v1
YARN_CACHE_FOLDER: .cache/yarn
NODE_VERSION: 12
# https://github.com/chalk/supports-color/issues/106
FORCE_COLOR: true
NODE_VERSION: 14

jobs:
test:
Expand All @@ -25,16 +23,17 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12, ^14.15.0]
# disable macos-latest: https://github.com/actions/virtual-environments/issues/2247
os: [ubuntu-latest, windows-latest] # macos-latest
node-version: [12, 14]
python-version: [3.8]
java-version: [8]
java-version: [11]
exclude:
- os: windows-latest
node-version: 10
node-version: 12

env:
coverage: ${{ matrix.os == 'ubuntu-latest' && matrix.node-version == 12 }}
coverage: ${{ matrix.os == 'ubuntu-latest' && matrix.node-version == 14 }}
NODE_VERSION: ${{ matrix.node-version }}
PYTHON_VERSION: ${{ matrix.python-version }}
JAVA_VERSION: ${{ matrix.java-version }}
Expand All @@ -51,13 +50,13 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Set up Java ${{ env.JAVA_VERSION }}
if: env.NODE_VERSION == '12'
if: env.NODE_VERSION == '14'
uses: actions/setup-java@v1.4.3
with:
java-version: ${{ env.JAVA_VERSION }}

- name: Skip Java tests
if: env.NODE_VERSION != '12'
if: env.NODE_VERSION != '14'
run: echo "SKIP_JAVA_TESTS=true" >> $GITHUB_ENV

- name: Init platform
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ env:
YARN_MODULES_CACHE_KEY: v1
YARN_PACKAGE_CACHE_KEY: v1
YARN_CACHE_FOLDER: .cache/yarn
NODE_VERSION: 12
# https://github.com/chalk/supports-color/issues/106
FORCE_COLOR: true
NODE_VERSION: 14

jobs:
release-npm:
Expand Down

0 comments on commit 2727eec

Please sign in to comment.