Skip to content

Commit

Permalink
Use the prebuilds inside the test job
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 28, 2021
1 parent 1c21506 commit d52c8e1
Showing 1 changed file with 32 additions and 20 deletions.
52 changes: 32 additions & 20 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,8 @@ on:
name: Run Tests

jobs:

test:
name: Tests
strategy:
matrix:
node: [10, 12]
os: [windows-2016, ubuntu-16.04, ubuntu-18.04, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}

- run: yarn

- run: yarn test

prebuild:
name: Prebuild
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -66,3 +47,34 @@ jobs:
uses: actions/upload-artifact@v2
with:
path: ./prebuilds

test:
name: Tests
needs: prebuild
strategy:
matrix:
node: [10, 12]
os: [windows-2016, ubuntu-16.04, ubuntu-18.04, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}

- name: Download prebuilds
uses: actions/download-artifact@v2

- name: Install prebuilds
shell: bash
run: |
rm -rf build
mkdir prebuilds
mv artifact/* prebuilds/
ls prebuilds
- run: yarn

- run: yarn test

0 comments on commit d52c8e1

Please sign in to comment.