Skip to content

Commit

Permalink
ci: add test for node 10
Browse files Browse the repository at this point in the history
  • Loading branch information
yunnysunny committed May 2, 2022
1 parent 418408f commit 5f27a06
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
include:
- node-version: 10.x
- node-version: 12.x
# test-on-brower: 1
- node-version: 14.x
Expand All @@ -21,7 +22,7 @@ jobs:
- uses: actions/checkout@v2

- name: Install Node - ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
Expand All @@ -32,7 +33,11 @@ jobs:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
- name: Install Dependencies On Node 10
if: ${{ matrix.node-version == '10.x' }}
run: yarn install --ignore-optional
- name: Install Dependencies On Node ${{ matrix.node-version }}
if: ${{ matrix.node-version != '10.x' }}
run: yarn install
- name: Build
run: npm run build
Expand All @@ -42,4 +47,4 @@ jobs:
HTTP2_TEST: ${{ matrix.test-http2 }}
run: |
npm run test
npm run coverage
npm run coverage

0 comments on commit 5f27a06

Please sign in to comment.