Skip to content

Commit f853f6f

Browse files
committed
Weekly regression testing
- Check weekly for regressions - Added earliest and latest nan versions to test matrix
1 parent 441c463 commit f853f6f

2 files changed

Lines changed: 26 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
name: build
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 5 * * 1" # Every Monday at 5:00 UTC
48

59
jobs:
610

711
build:
812

913
strategy:
1014
matrix:
11-
virtual-environment: ['ubuntu-latest', 'windows-2025', 'ubuntu-24.04-arm']
12-
node: [16, 18, 20, 22, 24, 25]
15+
virtual-environment: [ubuntu-latest, windows-2025, ubuntu-24.04-arm]
16+
node: [16, 18, 20, 22, 24, latest]
17+
nan-version: [nan-earliest, nan-latest]
1318
include:
14-
- virtual-environment: 'macos-latest'
19+
- virtual-environment: macos-latest
1520
node: 18
16-
- virtual-environment: 'macos-latest'
21+
- virtual-environment: macos-latest
1722
node: 20
18-
- virtual-environment: 'macos-latest'
23+
- virtual-environment: macos-latest
1924
node: 22
20-
- virtual-environment: 'macos-latest'
25+
- virtual-environment: macos-latest
2126
node: 24
22-
- virtual-environment: 'macos-latest'
27+
- virtual-environment: macos-latest
2328
node: 25
2429

2530
runs-on: ${{ matrix.virtual-environment }}
@@ -37,8 +42,18 @@ jobs:
3742
with:
3843
node-version: ${{ matrix.node }}
3944

45+
- name: Install earliest nan dependency
46+
shell: bash
47+
if: matrix.nan-version == 'nan-earliest'
48+
run: |
49+
earliest_nan_version="$(npm pkg get dependencies | jq -r '.[] | ltrimstr("^")')"
50+
echo "Installing nan version $earliest_nan_version"
51+
npm install nan@"$earliest_nan_version"
52+
4053
- name: Install dependencies and build
41-
run: npm install
54+
run: |
55+
npm install
56+
npm explain nan
4257
4358
- name: Run linter
4459
run: node node_modules/eslint/bin/eslint .

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ node-blake2 has been tested to work with the following compilers and platforms:
1212

1313
| Compiler | Operating System | Architecture |
1414
|-----------------------------------|-----------------------------|--------------------------|
15-
| GCC 8.3.0, 10.2.0, 11.2.0, 12.2.1 | GNU/Linux Gentoo | x86_64 |
16-
| LLVM clang 11.1.0, 13.0.0, 15.0.7 | GNU/Linux Gentoo | x86_64 |
15+
| GCC 8.3.0, 11.2.0, 12.2.1, 15.2.1 | GNU/Linux Gentoo | x86_64 |
16+
| LLVM clang 11.1.0, 15.0.7, 21.1.8 | GNU/Linux Gentoo | x86_64 |
1717
| GCC 5.4.0 | GNU/Linux Ubuntu 16.04 | x86_64 |
1818
| LLVM clang 11.1.0 | OpenBSD 7.0 | x86_64 |
1919
| Apple LLVM clang 9.1.0 | macOS 10.13 | x86_64 |

0 commit comments

Comments
 (0)