Skip to content

Commit

Permalink
chore: add "push" action to "build all" on develop (trufflesuite#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese authored and sam committed Apr 15, 2021
1 parent c7e2b45 commit aee08e1
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aee08e1

Please sign in to comment.