-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 802 Bytes
/
pull_requests.yml
File metadata and controls
38 lines (30 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Pull Request Checks"
on:
workflow_dispatch:
pull_request:
types: [synchronize, opened, reopened]
jobs:
core-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set node version
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install
run: |
npm install
npm run setheapsize
- name: Patch Dependencies for Node 22
run: |
sed -i 's/new SlowBuffer/Buffer.alloc/g' node_modules/avsc/lib/types.js
sed -i 's/SlowBuffer/Buffer/g' node_modules/buffer-equal-constant-time/index.js
- name: Lint
run: npx grunt lint
- name: Config Tests
run: npx grunt configTests
- name: Unit Tests
run: |
npm test
npm run testnodeconsumer