Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions .github/workflows/nodejs-ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ jobs:

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v1
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x

- name: Install production dependencies, check node engine compatibility
run: yarn install --production=true
- name: Enable Corepack
run: corepack enable

- name: Install development dependencies
run: yarn install --production=false --ignore-engines
- name: Install dependencies
run: yarn install

- name: Build & Code analysis
run: yarn run lint
Expand All @@ -31,7 +32,7 @@ jobs:
run: yarn run test

- name: Upload build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build
path: |
Expand All @@ -41,29 +42,36 @@ jobs:

test:

name: Node.js
runs-on: ubuntu-latest

env:
YARN_IGNORE_NODE: 1

needs: build

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:

- name: 'Checkout the repository'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Test with Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn install --ignore-engines
run: yarn install

- name: Download build
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: build

Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "Bounded batch queue, where items are produced and consumed based on user specified functions",
"type": "module",
"license": "MIT",
"private": false,
"engines": {
"node": ">= 14.0.0",
"npm": ">= 6.0.0"
Expand Down Expand Up @@ -44,9 +43,9 @@
],
"contributors": [],
"scripts": {
"clean": "del-cli src/**/*.js src/**/*.js.map src/**/*.d.ts test/**/*.js test/**/*.js.map test/**/*.d.ts",
"clean": "del-cli 'src/**/*.js' 'src/**/*.js.map' 'src/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map' 'test/**/*.d.ts'",
"compile-src": "tsc -p src",
"build": "npm run clean && npm run compile-src",
"build": "yarn run clean && npm run compile-src",
"lint": "eslint src test --ext .ts",
"test": "mocha"
},
Expand All @@ -68,5 +67,6 @@
"npm-run-all": "^4.1.5",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
},
"packageManager": "yarn@4.6.0"
}
Loading