Skip to content

Commit

Permalink
fix: ignore engines for node10 in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Apr 15, 2022
1 parent 4751923 commit 8c88b43
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Cache node_modules
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -60,11 +62,25 @@ jobs:
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Prepare Environment
if: matrix.node_version != 10
run: |
yarn
yarn build
env:
CI: true
- name: Prepare Environment
if: matrix.node_version == 10
run: |
sudo apt-get update
sudo apt-get install libudev-dev
# yarn --prod
yarn --ignore-engines
yarn build
env:
CI: true

- name: Run unit tests
run: |
yarn test
Expand Down

0 comments on commit 8c88b43

Please sign in to comment.