Skip to content

Commit 7162d71

Browse files
authored
Update npm in github actions (#43)
* Update npm in github actions * Execute on PR to validate * Test * Update mocha * Do not run test in binary publishing * Remove execution on PR * Update * Use windows-2019 * Adding docker files needed for Alpine binaries * continue-on-error: true * Alpine first * Remove test from docker file * Add --ignore-installed distlib * Remove github action execution in PR * Add node 18 and 19 for binaries * Update
1 parent 3995ad2 commit 7162d71

File tree

5 files changed

+4546
-422
lines changed

5 files changed

+4546
-422
lines changed

.github/workflows/linux.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ env:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
continue-on-error: true
1112
strategy:
13+
fail-fast: true
1214
matrix:
13-
node-version: [8, 10, 12, 14, 15, 16, 17]
15+
node-version: [8, 10, 12, 14, 15, 16, 17, 18, 19]
1416
steps:
1517
- uses: actions/checkout@v2
1618
- name: Use Node.js ${{ matrix.node-version }}
@@ -21,7 +23,6 @@ jobs:
2123
- run: npm run build:ts
2224
- run: npm run build
2325
- run: if [[ ${{ matrix.node-version }} == 14 ]]; then npm run lint; fi;
24-
- run: npm test
2526
- run: npm run package
2627
- uses: actions/upload-artifact@v2
2728
with:
@@ -31,9 +32,4 @@ jobs:
3132
- name: Publish
3233
# Publish not compatible with node 8, need to manually upload the files
3334
if: ${{ matrix.node-version != '8' }}
34-
run: npm run publish:github
35-
# Generate musl binaries using Alpine Linux
36-
# TODO: mhart/alpine-node:17 not currently available
37-
# TODO: mhart/alpine-node:15 fails to install virtualenv
38-
- run: if [[ ${{ matrix.node-version }} != 8 && ${{ matrix.node-version }} != 15 && ${{ matrix.node-version }} != 17 ]]; then docker build --build-arg VERSION=${{ matrix.node-version }} -t tmp/alpine-native-metrics .; fi;
39-
- run: if [[ ${{ matrix.node-version }} != 8 && ${{ matrix.node-version }} != 15 && ${{ matrix.node-version }} != 17 ]]; then docker run -e NODE_PRE_GYP_GITHUB_TOKEN tmp/alpine-native-metrics; fi;
35+
run: npm run publish:github

.github/workflows/macos.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ env:
99
jobs:
1010
build:
1111
runs-on: macos-latest
12+
continue-on-error: true
1213
strategy:
14+
fail-fast: true
1315
matrix:
14-
node-version: [8, 10, 12, 14, 15, 16, 17]
16+
node-version: [8, 10, 12, 14, 15, 16, 17, 18, 19]
1517
steps:
1618
- uses: actions/checkout@v2
1719
- name: Use Node.js ${{ matrix.node-version }}
@@ -21,7 +23,6 @@ jobs:
2123
- run: npm ci
2224
- run: npm run build:ts
2325
- run: npm run build
24-
- run: npm test
2526
- run: npm run package
2627
- uses: actions/upload-artifact@v2
2728
with:

.github/workflows/windows.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ env:
88
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99
jobs:
1010
build:
11-
runs-on: windows-latest
11+
runs-on: windows-2019
12+
continue-on-error: true
1213
strategy:
14+
fail-fast: true
1315
matrix:
14-
node-version: [8, 10, 12, 14, 15, 16, 17]
16+
node-version: [8, 10, 12, 14, 15, 16, 17, 18, 19]
1517
steps:
1618
- uses: actions/checkout@v2
1719
- name: Use Node.js ${{ matrix.node-version }}
@@ -21,7 +23,6 @@ jobs:
2123
- run: npm ci
2224
- run: npm run build:ts
2325
- run: npm run build
24-
- run: npm test
2526
- run: npm run package:windows
2627
- uses: actions/upload-artifact@v2
2728
with:

0 commit comments

Comments
 (0)