forked from trufflesuite/ganache
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add "push" action to "build all" on
develop
(trufflesuite#738)
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,47 @@ jobs: | |
- run: npm test | ||
env: | ||
FORCE_COLOR: 1 | ||
|
||
build-all: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node: [10.7.0, 10.x, 11.x, 12.x, 13.x, 14.x] | ||
os: [windows-2019, ubuntu-16.04, ubuntu-18.04, macos-11.0] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
if: github.ref == 'refs/heads/develop' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
# we need build tools for the `bigint-buffer` module | ||
- name: Add msbuild to PATH | ||
if: startsWith(matrix.os, 'windows-') | ||
uses: microsoft/[email protected] | ||
- name: Update npm for node 10.7.0 | ||
# lerna bootstrap was failing on node 10.7.0 with npm 6.1.0, updating | ||
# to npm 6.4.1 seems to fix the problem | ||
if: ${{ startsWith(matrix.os, 'windows-') && matrix.node == '10.7.0' }} | ||
run: npm install [email protected] --global | ||
- name: install node tools | ||
if: startsWith(matrix.os, 'windows-') | ||
# [email protected] failed to install, so we use 4.0.0 | ||
run: npm install --global --production [email protected] | ||
- name: install node-gyp | ||
if: startsWith(matrix.os, 'windows-') | ||
run: npm install --global node-gyp@latest | ||
- name: Set node config to use python2.7 | ||
if: startsWith(matrix.os, 'windows-') | ||
run: npm config set python python2.7 | ||
- name: Set node config to set msvs_version to 2015 | ||
if: startsWith(matrix.os, 'windows-') | ||
run: npm config set msvs_version 2015 | ||
- run: npm ci | ||
- run: npm test | ||
env: | ||
FORCE_COLOR: 1 |