Skip to content

Commit

Permalink
Require Node >=16
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Oct 26, 2023
1 parent 6e988c1 commit bf6bf50
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/awaitqueue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,46 @@ name: awaitqueue

on: [push, pull_request]

concurrency:
# Cancel a currently running workflow from the same PR, branch or tag when a
# new workflow is triggered.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
ci:
strategy:
matrix:
ci:
- os: ubuntu-22.04
node: 14
- os: ubuntu-22.04
- os: ubuntu-20.04
node: 16
- os: macos-12
- os: ubuntu-20.04
node: 18
- os: ubuntu-22.04
node: 20
- os: windows-2022
node: 20

runs-on: ${{ matrix.ci.os }}

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.ci.node }}

- name: Configure cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.npm
key: ${{ matrix.ci.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ matrix.ci.os }}-node-
- run: npm ci
- run: npm run lint
- run: npm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"lib"
],
"engines": {
"node": ">=14"
"node": ">=16"
},
"scripts": {
"prepare": "npm run typescript:build",
Expand Down

0 comments on commit bf6bf50

Please sign in to comment.