Skip to content

Commit a717c00

Browse files
authored
chore (ci): add node v20 to build matrix (brianc#3148)
* chore (ci): add node v20 to build matrix * skip pg-native tests on node 20 --------- Co-authored-by: alxndrsn <alxndrsn>
1 parent aedae81 commit a717c00

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- '14'
4343
- '16'
4444
- '18'
45+
- '20'
4546
os:
4647
- ubuntu-latest
4748
name: Node.js ${{ matrix.node }} (${{ matrix.os }})
@@ -54,6 +55,7 @@ jobs:
5455
PGTESTNOSSL: 'true'
5556
SCRAM_TEST_PGUSER: scram_test
5657
SCRAM_TEST_PGPASSWORD: test4scram
58+
TEST_SKIP_NATIVE: ${{ matrix.node == 20 }}
5759
steps:
5860
- name: Show OS
5961
run: |

packages/pg/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ test-missing-native:
3939

4040
test-native: test-connection
4141
@echo "***Testing native bindings***"
42+
ifeq ($(TEST_SKIP_NATIVE), true)
43+
@echo "***Skipping tests***"
44+
else
4245
@npm i --no-save pg-native
4346
@find test/native -name "*-tests.js" | $(node-command)
4447
@find test/integration -name "*-tests.js" | $(node-command) native
4548
@npm uninstall pg-native
49+
endif
4650

4751
test-integration: test-connection
4852
@echo "***Testing Pure Javascript***"

0 commit comments

Comments
 (0)