Lower check-linters node version to 14, add Node.js 18, set timeout 15mins for each job

This commit is contained in:
Louis Lam 2022-05-01 18:25:52 +08:00
parent 39aa0a7f07
commit 000cbeb0ce

View file

@ -13,11 +13,12 @@ jobs:
auto-test: auto-test:
needs: [ check-linters ] needs: [ check-linters ]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy: strategy:
matrix: matrix:
os: [macos-latest, ubuntu-latest, windows-latest] os: [macos-latest, ubuntu-latest, windows-latest]
node: [14, 16, 17] node: [ 14, 16, 17, 18 ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:
@ -45,7 +46,7 @@ jobs:
- name: Use Node.js LTS - name: Use Node.js LTS
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 14
cache: 'npm' cache: 'npm'
- run: npm install - run: npm install
- run: npm run lint - run: npm run lint