Visitar URL original
Update github workflows · nodegit/nodegit@4912695 · GitHub
Skip to content

Commit 4912695

Browse files
committed
Update github workflows
1 parent 2e63ec9 commit 4912695

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
name: "Linux Tests"
1515
strategy:
1616
matrix:
17-
node: [12, 14]
17+
node: [12, 14, 16]
1818
runs-on: ubuntu-latest
1919
container: ubuntu:16.04
2020
steps:
2121
- name: Install Dependencies for Ubuntu
2222
# git >= 2.18 required for actions/checkout git support
23-
run: apt update && apt install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt update && apt install -y git build-essential clang python3 libssl-dev libkrb5-dev libc++-dev
23+
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt-get update && apt-get install -y git build-essential clang python3 libssl-dev libkrb5-dev libc++-dev
2424
env:
2525
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
2626

@@ -52,7 +52,10 @@ jobs:
5252
npm_config_clang: 1
5353
GYP_DEFINES: use_obsolete_asm=true
5454
# There is a race condition in node/generate that needs to be fixed
55+
# Node 16 changed the logic it uses to select it's UID which means to make node run as root and not 1001, we need to chwon the current directory. More Details:
56+
# https://stackoverflow.com/questions/70298238/getting-eaccess-when-running-npm-8-as-root
5557
run: |
58+
chown root.root -R .
5659
npm set unsafe-perm true
5760
node utils/retry npm install
5861
@@ -79,7 +82,7 @@ jobs:
7982
name: "macOS Tests"
8083
strategy:
8184
matrix:
82-
node: [12, 14]
85+
node: [12, 14, 16]
8386
runs-on: macOS-10.15
8487
# This is mostly the same as the Linux steps, waiting for anchor support
8588
# https://github.com/actions/runner/issues/1182
@@ -137,7 +140,7 @@ jobs:
137140
name: Windows Tests
138141
strategy:
139142
matrix:
140-
node: [12, 14]
143+
node: [12, 14, 16]
141144
arch: [x86, x64]
142145
runs-on: windows-2016
143146
steps:

‎lifecycleScripts/install.js‎

100644100755
File mode changed.

‎lifecycleScripts/preinstall.js‎

100644100755
File mode changed.

0 commit comments

Comments
 (0)